bunnyship:RabbitMQ分布式多人战舰游戏

时间:2021-06-04 21:57:38
【文件属性】:
文件名称:bunnyship:RabbitMQ分布式多人战舰游戏
文件大小:21KB
文件格式:ZIP
更新时间:2021-06-04 21:57:38
Ruby 兔子船 使用RabbitMQ的分布式多人战舰游戏 安装 安装 Ruby 2.1.1。 rbenv install 2.1.1 安装捆绑器。 gem install bundler 安装捆绑包。 bundle install 运行 ruby test/run.rb 要定位自己,您必须指定您的玩家名称,即sketchmeister。 如果您只想写入 html 文件,请注释掉 console_display.run 行。 运行测试 运行所有测试: bundle exec rake test
【文件预览】:
bunnyship-master
----Rakefile(85B)
----test()
--------settings.yaml(107B)
--------player_worker_test.rb(2KB)
--------validator_test.rb(3KB)
--------game_test.rb(2KB)
--------player_1.yaml(478B)
--------expected_html.html(8KB)
--------start_game_worker.rb(861B)
--------html_display_test.rb(907B)
--------battleship_test.html(8KB)
--------game_worker_test.rb(2KB)
--------ship_builder_test.rb(512B)
--------grid_test.rb(974B)
--------start_player_worker_b.rb(1KB)
--------start_player_worker_a.rb(1KB)
--------ship_test.rb(1KB)
--------console_display_test.rb(2KB)
--------player_test.rb(2KB)
--------run.rb(838B)
--------display_test.rb(2KB)
----Gemfile(120B)
----Gemfile.lock(401B)
----.ruby-version(5B)
----lib()
--------console_display.rb(2KB)
--------display.rb(642B)
--------validator.rb(1KB)
--------grid.rb(342B)
--------html_display.rb(811B)
--------html_template.erb(482B)
--------ship_builder.rb(710B)
--------player_rpc_worker.rb(2KB)
--------player.rb(1KB)
--------ship.rb(1KB)
--------game.rb(1KB)
--------game_worker.rb(4KB)
--------player_topic_worker.rb(508B)
----public()
--------images()
----README.md(522B)

网友评论