我正在寻找使用 ruby on Rails 开发一个简单的两人在线回合制游戏。任何提示
我正在寻找一款快速的 Rails 应用程序,允许两名玩家轮流进行,并在每次轮流后获得反馈 - 大约 10 轮,这样就不会有长期连接的问题。
我想使用 Rails,因为我对它相当了解,已经设置了托管并安装了我的工具。
您对插件、库或教程有什么建议来帮助玩家之间的沟通吗?
I am looking to knock off a quickie rails app that will allow two players to take turns and get feedback after each turn - approximately 10 rounds of turns so there are no issues with long lived connections.
I want to use rails because I know it reasonably well, have hosting already set up and have my tools installed.
Do you have any advice on plugins, libraries or tutorials to help out with the communication between players.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
此链接可能会有所帮助:
http://juggernaut.rubyforge.org/
http://github.com/socky/socky-server-ruby
This links may be helpful:
http://juggernaut.rubyforge.org/
http://github.com/socky/socky-server-ruby
Socky 可能会更好,因为它是 ruby(juggernaut 现在基于 node.js)并且不需要 redis。此外,它还为没有 Websocket 实现的浏览器提供了 Flash 后备功能,因此它覆盖了大多数设备。
Socky will be probably better because it's ruby(juggernaut is now node.js based) and don't require redis. Also it has flash fallback for browsers without websocket implementation so it cover most of devices.