mak4026 / submarine_game Goto Github PK
View Code? Open in Web Editor NEWプログラミング演習の課題リポジトリ
プログラミング演習の課題リポジトリ
ディレクトリに分けます
please input "w" or "c" or "s"
select your ship: c
x = 3
y = 0
players/manual_player.rb:34:in `action': undefined method `reachable?' for nil:NilClass (NoMethodError)
from players/manual_player.rb:230:in `block in main'
from players/manual_player.rb:225:in `loop'
from players/manual_player.rb:225:in `main'
from players/manual_player.rb:249:in `<main>'
players/state_player.rb:156:in `update': undefined method `[]' for false:FalseClass (NoMethodError)
from players/state_player.rb:220:in `block in main'
from players/state_player.rb:213:in `loop'
from players/state_player.rb:213:in `main'
from players/state_player.rb:234:in `<main>'
おそらくupdateのときに、jsonの存在しないキーを見に行ってしまうのが原因
自分の担当範囲について、ドキュメンテーションする
waiting
{"moved"=>false}
{"me"=>{"w"=>{"hp"=>3, "position"=>[3, 0]}}, "enemy"=>{"w"=>{"hp"=>2}, "c"=>{"hp"=>2}, "s"=>{"hp"=>1}}}
players/ai_player_simple.rb:110:in `update': undefined method `[]' for false:FalseClass (NoMethodError)
from players/ai_player_simple.rb:138:in `block in main'
from players/ai_player_simple.rb:131:in `loop'
from players/ai_player_simple.rb:131:in `main'
from players/ai_player_simple.rb:152:in `<main>'
どうも行動結果のJSONに不正な値を入れられると死んでしまうよう
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.