Hacker News new | ask | show | jobs
by styfle 3158 days ago
The first snippet calls robot.jump() every loop. The second doesn’t not.
1 comments

True, although as someone else points out (contrary to what I thought) only the last runnable action is done.

If that wasn't the case, then swapping things around to be something more like "move_next_turn" would be clearer I think.