Class: YourSolver

Inherits:
Object
  • Object
show all
Defined in:
lib/codenjoy/game_base_client.rb

Instance Method Summary collapse

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