Commit cf19b39b authored by Sam Moore's avatar Sam Moore

Whoops

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.
parent 345d8b1f
......@@ -31,13 +31,13 @@ def is_integer(s):
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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment