app/move.rb
# This function is called on every turn of a game. It's how your Battlesnake decides where to move.
# Valid moves are "up", "down", "left", or "right".
# TODO: Use the information in board to decide your next move.
This function is called on every turn of a game. It's how your Battlesnake decides where to move.
This function is called on every turn of a game . It ' s how your Battlesnake decides where to move .
def move(board)
  puts board
  possible_moves = ["up", "down", "left", "right"]
  move = possible_moves.sample
  puts "MOVE: " + move
  { "move": move }
end
def move ( board ) puts board possible_moves = [ "up" , "down" , "left" , "right" ] move = possible_moves . sample puts "MOVE: " + move { "move" : move } end
This function is called on every turn of a game.
This function is called on every turn of a game .
# Choose a random direction to move in
board
<not_specific>