Preview:
row1 = ["⬜️","️⬜️","️⬜️"]
row2 = ["⬜️","⬜️","️⬜️"]
row3 = ["⬜️️","⬜️️","⬜️️"]
map = [row1, row2, row3]
print(f"{row1}\n{row2}\n{row3}")

position = input("Where do you want to put the treasure? ")

if position == "11":
    treasure_1 = row1[0] = "x"
    print("You Treasure is placed now! Arghh!! = {treasure_1}")
elif position == "21":
    treasure_2 = row1[1] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_2}")
elif position == "31":
    treasure_3 = row1[2] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_3}")
elif position == "12":
    treasure_4 = row2[0] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_4}")
elif position == "22":
    treasure_5 = row2[1] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_5}")
elif position == "32":
    treasure_6 = row2[2] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_6}")
elif position == "13":
    treasure_7 = row3[0] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_7}")
elif position == "23":
    treasure_8 = row3[1] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_8}")
elif position == "33":
    treasure_9 = row3[2] = "x"
    print(f"You Treasure is placed now! Arghh!! = {treasure_9}")

print(f"{row1}\n{row2}\n{row3}")
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter