Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # game loop
- while 1:
- remainingTurns = int(raw_input())
- # Write an action using print
- #To debug: print >>
- thorX, thorY = initialTX , initialTY
- if thorX > lightX:
- directionX = 'W'
- thorX-= 1
- elif thorX < lightX:
- directionX = 'E'
- else:
- directionX = ''
- if thorY > lightY:
- directionY = 'N'
- thorY -= 1
- elif thorY < lightY:
- directionY = 'S'
- thorY += 1
- else:
- directionY = ''
- print directionY + directionX
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement