You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
354 B
14 lines
354 B
import string |
|
|
|
line1 = [" ", " ", " "] |
|
line2 = [" ", " ", " "] |
|
line3 = [" ", " ", " "] |
|
map = [line1, line2, line3] |
|
print("Hiding your treasure! X marks the spot.") |
|
position = input() # Where do you want to put your treasure |
|
|
|
col = position[0] |
|
row = position[1] |
|
map[string.ascii_lowercase.index(col)][int(row)-1] = 'X' |
|
|
|
print(f"{line1}\n{line2}\n{line3}") |