Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def init_board():
- """Returns an empty 0-by-0 board (with zeros)."""
- board = [[0,0,0],[0,0,0],[0,0,0]]
- return board
- board = init_board()
- board_pair = {"A": board[0], "B": board[1], "C": board[0]}
- row, col = 0, 0
- print(board_pair.keys())
- locks = list(board_pair.keys())
- print(f"This is locks {locks}")
- fail = False
- while True:
- usermove = input("What coords?")
- for key in locks:
- coords = list(usermove)
- if usermove.startswith(key):
- print("GJ!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement