Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.51 KB | None | 0 0
  1. def init_board():
  2.     """Returns an empty 0-by-0 board (with zeros)."""
  3.     board = [[0,0,0],[0,0,0],[0,0,0]]
  4.     return board
  5.  
  6.  
  7. board = init_board()
  8. board_pair = {"A": board[0], "B": board[1], "C": board[0]}
  9.  
  10. row, col = 0, 0
  11.  
  12.  
  13. print(board_pair.keys())
  14. locks = list(board_pair.keys())
  15.  
  16. print(f"This is locks {locks}")
  17.  
  18. fail = False
  19.  
  20. while True:
  21.     usermove = input("What coords?")
  22.     for key in locks:
  23.         coords = list(usermove)
  24.         if usermove.startswith(key):
  25.             print("GJ!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement