# -*- coding: utf-8 -*- """ Created on Mon Jun 22 09:00:17 2026 @author: ko24009 """ def main(): # Current positions of player x = 0 y = 0 # Goal positions goal_x = 2 goal_y = 1 turns = 0 # Main game loop while True: print(f"You are at {x},{y}") # prints out co-ordinates with f strings # Useful to see if students use AI to copy code. direction = input("Enter WASD\n") # determine directions if(direction=="w"): y = y + 1 print(turns = turns - 1) turns = turns + 1 if(direction=="s"): y = y - 1 turns = turns + 1 if(direction=="a"): x = x - 1 turns = turns + 1 if(direction=="d"): x = x + 1 turns = turns + 1 if(direction=="q"): break if x == goal_x and y == goal_y : print ("you win!") break