Exemple #1
0
 def _move_on_sq2(self):
     self.board.grid[0][1] = self.current_player.shape
     if self.current_player == self.player1:
         shape_2 = shape.Cross(230, 120, 290, 180, 290, 120, 230, 180)
     else:
         shape_2 = shape.Circle(260, 150)
     self.board.shapes['shape_2'] = shape_2
Exemple #2
0
 def _move_on_sq1(self):
     self.board.grid[0][0] = self.current_player.shape
     if self.current_player == self.player1:
         shape_1 = shape.Cross(120, 120, 180, 180, 180, 120, 120, 180)
     else:
         shape_1 = shape.Circle(150, 150)
     self.board.shapes['shape_1'] = shape_1
Exemple #3
0
 def _move_on_sq4(self):
     self.board.grid[1][0] = self.current_player.shape
     if self.current_player == self.player1:
         shape_4 = shape.Cross(120, 230, 180, 290, 180, 230, 120, 290)
     else:
         shape_4 = shape.Circle(150, 260)
     self.board.shapes['shape_4'] = shape_4
Exemple #4
0
 def _move_on_sq3(self):
     self.board.grid[0][2] = self.current_player.shape
     if self.current_player == self.player1:
         shape_3 = shape.Cross(340, 120, 400, 180, 400, 120, 340, 180)
     else:
         shape_3 = shape.Circle(370, 150)
     self.board.shapes['shape_3'] = shape_3
Exemple #5
0
 def _move_on_sq5(self):
     self.board.grid[1][1] = self.current_player.shape
     if self.current_player == self.player1:
         shape_5 = shape.Cross(230, 230, 290, 290, 290, 230, 230, 290)
     else:
         shape_5 = shape.Circle(260, 260)
     self.board.shapes['shape_5'] = shape_5
Exemple #6
0
 def _move_on_sq6(self):
     self.board.grid[1][2] = self.current_player.shape
     if self.current_player == self.player1:
         shape_6 = shape.Cross(340, 230, 400, 290, 400, 230, 340, 290)
     else:
         shape_6 = shape.Circle(370, 260)
     self.board.shapes['shape_6'] = shape_6
Exemple #7
0
 def _move_on_sq7(self):
     self.board.grid[2][0] = self.current_player.shape
     if self.current_player == self.player1:
         shape_7 = shape.Cross(120, 340, 180, 400, 180, 340, 120, 400)
     else:
         shape_7 = shape.Circle(150, 370)
     self.board.shapes['shape_7'] = shape_7
Exemple #8
0
 def _move_on_sq8(self):
     self.board.grid[2][1] = self.current_player.shape
     if self.current_player == self.player1:
         shape_8 = shape.Cross(230, 340, 290, 400, 290, 340, 230, 400)
     else:
         shape_8 = shape.Circle(260, 370)
     self.board.shapes['shape_8'] = shape_8
Exemple #9
0
 def _move_on_sq9(self):
     self.board.grid[2][2] = self.current_player.shape
     if self.current_player == self.player1:
         shape_9 = shape.Cross(340, 340, 400, 400, 400, 340, 340, 400)
     else:
         shape_9 = shape.Circle(370, 370)
     self.board.shapes['shape_9'] = shape_9