Class: YourSolver
- Inherits:
-
Object
- Object
- YourSolver
- Defined in:
- lib/codenjoy/game_base_client.rb
Instance Method Summary collapse
-
#get_answer(board) ⇒ Object
UP: ‘up’, // you can move DOWN: ‘down’, LEFT: ‘left’, RIGHT:‘right’, ACT: ‘act’, // fire STOP: ” // stay.
Instance Method Details
#get_answer(board) ⇒ Object
UP: ‘up’, // you can move DOWN: ‘down’, LEFT: ‘left’, RIGHT:‘right’, ACT: ‘act’, // fire STOP: ” // stay
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/codenjoy/game_base_client.rb', line 12 def get_answer(board) ####################################################################### # # YOUR ALGORITHM HERE # ####################################################################### return 'down' end |