GroZnik81

MAtrix

Apr 14th, 2021
471
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. player_names = input().split(", ")
  2. board_size =[]
  3. # coordinates = input().split()
  4. player_one = player_names[0]
  5. player_two = player_names[1]
  6. # player_start_score = 501
  7. hit_score = 0
  8.  
  9. # rows = [-1, 1, 0, 0, -1, -1, 1, 1]
  10. # cols = [0, 0, -1, 1, -1, 1, -1, 1]
  11.  
  12. for i in range(7):
  13.     board_size.append([el for el in input().split()])
  14.  
  15. coordinates = input().split()
  16. row_index = coordinates[0]
  17. col_index = coordinates[1]
  18.  
  19. def player_hit_number(row,col):
  20.     player_start_score = 501
  21.     for h in range(len(board_size)):
  22.         hit_point = coordinates
  23.         player_start_score -= hit_point
  24.     return player_start_score
  25.  
  26.  
  27. def hit_outsite_of_board(row_index,col_index):
  28.     if row_index > len(board_size) or col_index > len(board_size):
  29.         hit_score = 0
  30.         return hit_score
  31.  
  32.  
  33. def if_hit_d(row_index, col_index):
  34.      for row_index in range(len(board_size)):
  35.          for col_index in range(len(board_size)):
  36.              if board_size[row_index][col_index] == "D":
  37.                  pass
  38.              elif board_size[row_index][col_index] == "T":
  39.                  pass
  40.              elif board_size[row_index][col_index] == "B":
  41.                 print(f"{player_one}won the game with 1 throws!")
  42.                 break
  43.  
  44.  
  45.  
  46. def if_hit_t():
  47.     pass
  48.  
  49.  
  50. def if_hit_b():
  51.     pass
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
RAW Paste Data