Exemple #1
0
 def __init__(self, controller):
     IPlayer.__init__(self, "Computer", controller)
     self.hit_list = []
     self.nearby_moves = []  # will hold the nearby tiles from the hit_list.
     # for example if in the hit_list we have (2,2), then in the nearby_moves
     # we will have [(1,2), (3, 2), (2, 1), (2, 3)]
     self.moves_made = [
     ]  # will hold all the moves (attacks) that were attempted by the computer, whether they
Exemple #2
0
 def __init__(self, name: str, controller):
     IPlayer.__init__(self, name, controller)