ASP.NET Silverlight在线交易模拟游戏实现
我要开始一个新的在线交易模拟游戏。
服务器页面:
游戏将加载一个 xml,其中包含该游戏的工具以及每个工具的初始和变化因子价格(决定下一个间隔的价格,例如:1 分钟)。
用户页面:
游戏加载成功后,用户可以启动一个可以购买/出售乐器的页面。在这个买入/卖出过程中,盈利/亏损应该实时显示给用户。下拉列表中将填充工具,选择后应显示实时价格图表。
设计:
我想使用 ASP.NET 和 silverlight 来开发此应用程序,其中 ajax 请求将在可配置的时间内发送到服务器,以获取有关仪器的最新详细信息。然后根据响应,客户端浏览器将更新为最新价格。仪器图表也将以同样的方式更新。
所以,我想知道这是否是构建这个应用程序的正确方法。
请给我您宝贵的建议。
谢谢,马赫什
I am going to start a new online trading simulation game.
Server Page:
A game will be loaded with an xml which contains the instruments for this game and each instrument initial and changing factor price(which determines the price for the next interval ex: 1 min).
User Page:
After the game is loaded successfully, Users can launch a page where they can buy/sell instruments. During this buy/selling process, the profit/loss should be shown to user in real time. A dropdown will be populated with the instruments, when selected, should show a real time graph of the price.
Design:
I want to use ASP.NET and silverlight to develop this application where an ajax request will be sent in configurable time to the server to get the latest details about the instruments. Then based on the response, the client browser will be updated with the latest prices. The instrument graph also will be updated in the same way.
So, I would like to know whether this is a right way of building this applicaiton.
Please give me your valuable suggestions.
Thanks, Mahesh
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
->最好启动一项托管市场模拟的服务。在这里,您可以真正确保您的市场有一个实例同时运行。
除此之外,一切都很好。
-> better start a service for hosting the market simulation. Here you can acutally make sure that you have ONE instance of your market running at the same time.
Besides that, things like fine.