Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def move(state)
- head = state[:you][:body][0]
- moves = ['up', 'down', 'left', 'right']
- moves.each do |move|
- coord = move_as_coord(move, head)
- # We now know where this is going to be!
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement