Read the diff
Also, forgot to mention progress in simulate.py in last commit.
Made progress with total.html results file, and round by round results files.
Although since the round number is never updated properly, we only ever get "round1.html", overwritten each round.
def move(x, y, direction, multiplier):
""" Moves point (x,y) in direction, returns a pair """
if direction == "UP":
- return (x,y-1)
+ return (x,y-multiplier)
elif direction == "DOWN":
- return (x,y+1)
+ return (x,y+multiplier)
elif direction == "LEFT":
- return (x-1, y)
+ return (x-multiplier, y)
elif direction == "RIGHT":
- return (x+1, y)
+ return (x+multiplier, y)
return (x,y)