From cd542694016c2b178b1d4d8f7ecd5c4c0453f2e2 Mon Sep 17 00:00:00 2001 From: Harry830 <114953309+Harry830@users.noreply.github.com> Date: Tue, 4 Oct 2022 01:52:09 +0530 Subject: [PATCH] Create Treasure map.py Signed-off-by: Harry830 <114953309+Harry830@users.noreply.github.com> --- Treasure map.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Treasure map.py diff --git a/Treasure map.py b/Treasure map.py new file mode 100644 index 0000000..bca5a76 --- /dev/null +++ b/Treasure map.py @@ -0,0 +1,15 @@ +row1 = ["⬜️","️⬜️","️⬜️"] +row2 = ["⬜️","⬜️","️⬜️"] +row3 = ["⬜️️","⬜️️","⬜️️"] +map = [row1, row2, row3] +print(f"{row1}\n{row2}\n{row3}") +position = input("Where do you want to put the treasure?(column and row eg:-23) \n") + +position_1 = int(position[1]) - 1 +position_2 = int(position[0]) - 1 +map[position_1][position_2] = "X" + + + +print(f"{row1}\n{row2}\n{row3}") +