简体   繁体   English

最好的Web应用程序开发语言,为宾果游戏场景编写客户端/服务器应用程序

[英]Best web app developing language to write a client/server app for Bingo game scenario

Let's start from the assert I have low experience in web development, I am more focused towards desktop programming, but this could be an advantage, because I have no prejudices towards any solution. 让我们从断言开始,我在Web开发方面经验不足,我更专注于桌面编程,但这可能是一个优势,因为我对任何解决方案都没有偏见。

The scenario to model is this. 建模的方案是这样的。 We need to create a web-based application which should be compatible with every mobile OS and device (or at least with the most of them). 我们需要创建一个基于Web的应用程序,该应用程序应该与每个移动操作系统和设备 (或至少与其中的大多数) 兼容 This app should mainly give to the user the possibility to check the billboards he bought during a match of bingo game. 这个应用程序应该主要给用户检查他在宾果游戏比赛中购买的广告牌的可能性。

This bingo game is real, played in a bingo hall, not on the web, but the customers of the hall will be able, through their devices (tablet, smartphones) to connect to a dedicated wireless network in order to enter the billboards they bought in a window and to see during the bingo game match, how many numbers of their billboards had been checked and if they did cinquina (a line, five in a row) or a bingo (the full billboard, 15 numbers). 这款宾果游戏是真实的,在宾果游戏厅播放,而不是在网络上播放,但是大厅的顾客可以通过他们的设备(平板电脑,智能手机)连接到专用的无线网络,以便进入他们购买的广告牌在一个窗口中,在宾果游戏比赛中看到,他们检查了多少个广告牌,如果他们做了cinquina(一条线,五条连续)或一个宾果游戏(完整的广告牌,15个数字)。

In order to give a little modeling layout, I imagined that the best solution should be this. 为了给出一点建模布局,我想到最好的解决方案应该是这个。

  • server role : the server sends to the clients some information about the matches, for example, the range of billboards that could be played, the extracted numbers in realtime, and so on; 服务器角色 :服务器向客户端发送有关匹配的一些信息,例如,可以播放的广告牌范围,实时提取的数字等等; it gets from each client the range of billboards they bought; 它从每个客户那里获得他们购买的广告牌范围; it "plays" the billboards, I mean during the balls extraction, it marks the corresponding numbers on the billboards received by clients for that match and it sends this information to the corresponding clients; 它“播放”广告牌,我的意思是在球提取过程中,它标记了客户为该匹配收到的广告牌上的相应数字,并将此信息发送给相应的客户; finally, it signals to the corresponding clients if they scored cinquina or bingo. 最后,如果他们获得了cinquina或宾果游戏,它会向相应的客户发出信号。
  • client role : the client is the web-based application which receives from the server the information about the bingo matches, it sends to server the billboards the customer bought, it shows to the customer the extracting balls, the marked numbers in the billboards and the event if the customer won cinquina or bingo. 客户角色 :客户端是基于网络的应用程序,它从服务器接收有关宾果游戏的信息,它向服务器发送客户购买的广告牌,它向客户显示提取球,广告牌中的标记数字和如果客户赢得了cinquina或宾果游戏。

I thought to give the weight of billboards checking only to server rather than distributing to the clients because in this phase I don't really know how the diversity of devices that work as clients could give delays in the case that the billboards checking should be moved from server to client. 我想把广告牌的重量只给服务器而不是分发给客户端,因为在这个阶段我真的不知道作为客户端的设备的多样性如何在广告牌检查应该被移动的情况下给出延迟从服务器到客户端。 The most important requirement is that, in every case, every action should happen in real-time, or at least with minimum delay, not more than 1.5-2 seconds. 最重要的要求是,在每种情况下,每个动作都应该实时发生,或者至少以最小延迟发生,不超过1.5-2秒。

Now my question is as simple, as difficult to answer: Which is the best programming language to model this scenario? 现在我的问题很简单,很难回答:哪种方法是编写此方案的最佳编程语言? I know that there are many programming languages, even if I know that the main languages for this particular situation would be ASP.NET, PHP, Java (and maybe HTML5 ). 我知道有很多编程语言,即使我知道这种特殊情况的主要语言是ASP.NET,PHP,Java(也许是HTML5 )。

I include HTML5 in this list because it is very well oriented to cross-platform development and to mobile world, even if it uses (if I understood correctly) JavaScript in order to do the "dirty job". 我在这个列表中包含了HTML5,因为它非常适合跨平台开发和移动世界,即使它使用(如果我理解正确)JavaScript来执行“脏工作”。

I leave this question opened to all your considerations. 我把这个问题留给你所有的考虑因素。 You should feel free to suggest everything, even changes in my little modeling I talked to you, but the most important question is always the one related to the programming language. 您应该随意提出一切建议,甚至是我与您交谈过的小模型的变化,但最重要的问题始终是与编程语言相关的问题。

Your main question is whether to develop a native app (for Android, iOS, etc) or a web site that is optimised for mobile usage. 您的主要问题是是否开发本机应用程序(适用于Android,iOS等)或针对移动设备进行了优化的网站。 I think the latter is fine, in which case yes, you are looking at an HTML5 solution. 我认为后者很好,在这种情况下是的,你正在寻找一个HTML5解决方案。 Any language or framework can do this - the language is used on the server to produce HTML, and there is no "best" one. 任何语言或框架都可以这样做 - 在服务器上使用该语言来生成HTML,并且没有“最佳”语言。 They all have strengths and weaknesses. 他们都有优点和缺点。 .NET, PHP, Java, Ruby, Python, and several others! .NET,PHP,Java,Ruby,Python和其他几个! Take your pick. 随便挑选。

To improve speed you could encourage customers to connect to public wifi at the bingo hall, and to reduce latency you could even have your web server on-site. 为了提高速度,您可以鼓励客户在宾果大厅连接到公共wifi,并减少您甚至可以在现场使用Web服务器的延迟。 A simple update strategy would involve JavaScript and AJAX, but look into Web Sockets, they are much more lightweight, and are useful for continuous update situations. 一个简单的更新策略将涉及JavaScript和AJAX,但是看看Web套接字,它们更轻量级,并且对于连续更新情况很有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Android中实现客户端服务器以制作BINGO游戏,而不是聊天应用程序 - How to implement client server in android for making BINGO game, but not for chat application 宾果游戏 Java 服务器架构 - Bingo game Java server architecture 哪个是开发Java Web应用程序的最佳服务器? - which is best server for developing java web applications? Android客户端-服务器应用程序和Web服务 - Android Client-Server App & Web Services Java - 使用eclipse开发web gui的最佳框架是什么(应用程序是java和jsp)? - Java - what is the best framework for developing web gui with eclipse(app is java and jsp)? 文件未在客户端Java(服务器/客户端)App No Web中启动 - File not launching in Client Side Java (Server/Client) App no Web 使用 Sockets 在客户端-服务器应用程序中发送数据的最佳方式 - Best way to send data in a client-server App using Sockets 在netbeans中调试客户端-服务器应用程序的最佳方法是什么? - What is the best way to debug a client-server app in netbeans? 使用Java是开发基于GUI的会计应用程序的适当语言/平台吗? - Is using Java the proper language/platform for developing a GUI based accounting app? 开发一个既可以在网络上运行又可以作为Android应用程序运行的Java应用程序? - Developing a Java app that runs both on the web and as an Android app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM