diff options
author | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
---|---|---|
committer | standenboy <standenboy@seacrossedlovers.xyz> | 2023-12-15 10:19:20 +0000 |
commit | 4a95719d58a708ad55b1389631d6339047f786a0 (patch) | |
tree | 26cb6fc2dbe7fa75f57f1d6fb13aff8955772b56 /comp/work/9/tanks.py |
added existing work
Diffstat (limited to 'comp/work/9/tanks.py')
-rwxr-xr-x | comp/work/9/tanks.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/comp/work/9/tanks.py b/comp/work/9/tanks.py new file mode 100755 index 0000000..6584263 --- /dev/null +++ b/comp/work/9/tanks.py @@ -0,0 +1,10 @@ +board1 = [["."] * 10] * 10 +board2 = [["."] * 10] * 10 + +for i in board1: + print(*i, sep=" ") +for i in range(3): + board1[int(input("tank y: "))][int(input("tank x: "))] = "T" +for i in board1: + print(*i, sep=" ") + |