Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Don't change the code below
- row1 = ["⬜️","⬜️","⬜️"]
- row2 = ["⬜️","⬜️","⬜️"]
- row3 = ["⬜️","⬜️","⬜️"]
- map = [row1, row2, row3]
- print(f"{row1}\n{row2}\n{row3}")
- position = input("Where do you want to put the treasure? \nHorizontal Row # then Vetical Row # seperated by a ,\nex: 1, 2\n")
- # Don't change the code above
- #Write your code below this row
- position = position.split(", ")
- x = int(position[0])
- y = int(position[1])
- x -= 1
- y -= 1
- #print(x)
- #print(y)
- #print(map[y])
- row = map[y]
- #print(row)
- row[x] = "X"
- #print(row)
- #Write your code above this row
- # Don't change the code below
- print(f"{row1}\n{row2}\n{row3}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement