Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. def move(state)
  2. head = state[:you][:body][0]
  3. moves = ['up', 'down', 'left', 'right']
  4.  
  5. moves.each do |move|
  6. coord = move_as_coord(move, head)
  7. # We now know where this is going to be!
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement