mirror of
https://github.com/KevinMidboe/knowit_julekalender-2017.git
synced 2025-10-29 09:40:18 +00:00
Cleanup
This commit is contained in:
@@ -15,7 +15,6 @@ def main():
|
|||||||
boardImg = Image.new('RGB', (400, 300), (255,255,255))
|
boardImg = Image.new('RGB', (400, 300), (255,255,255))
|
||||||
board = ImageDraw.Draw(boardImg)
|
board = ImageDraw.Draw(boardImg)
|
||||||
x, y = [0,0]
|
x, y = [0,0]
|
||||||
plotRectangle(x,y,board, 'green')
|
|
||||||
|
|
||||||
for step, direction in path:
|
for step, direction in path:
|
||||||
if (direction == 'north'):
|
if (direction == 'north'):
|
||||||
@@ -24,7 +23,6 @@ def main():
|
|||||||
board = plotRectangle(x, y, board)
|
board = plotRectangle(x, y, board)
|
||||||
elif (direction == 'east'):
|
elif (direction == 'east'):
|
||||||
for n in range(int(step)):
|
for n in range(int(step)):
|
||||||
print(y)
|
|
||||||
y += 1
|
y += 1
|
||||||
board = plotRectangle(x, y, board)
|
board = plotRectangle(x, y, board)
|
||||||
elif (direction == 'south'):
|
elif (direction == 'south'):
|
||||||
|
|||||||
Reference in New Issue
Block a user