game.py
def handle_click(self, pos: Tuple[float, float]):
        """
        Handles a click on the board

        Args:
            pos: The x,y position of the click
        """
        # only handle clicks during human turns and if they are on the board
        if self.board.is_human_turn() and pos[1] > self.GRID_OFFSET:
            # get the column of the click
            column = int(pos[0] / self.SQUARE_WIDTH)
            try:
                # place the piece
                self.board.place_piece(column)
                self.board.change_turn()
            except IllegalMoveException as err:
                print(err.message)
        self.draw_board()

        Handles a click on the board

        Args:
            pos: The x,y position of the click
        
Handles a click on the board
Handles a click on the board
def handle_click(self, pos: Tuple[float, float]):
        if self.board.is_human_turn() and pos[1] > self.GRID_OFFSET:
            column = int(pos[0] / self.SQUARE_WIDTH)
            try:
                self.board.place_piece(column)
                self.board.change_turn()
            except IllegalMoveException as err:
                print(err.message)
        self.draw_board()
def handle_click ( self , pos : Tuple [ float , float ] ) : if self . board . is_human_turn ( ) and pos [ 1 ] > self . GRID_OFFSET : column = int ( pos [ 0 ] / self . SQUARE_WIDTH ) try : self . board . place_piece ( column ) self . board . change_turn ( ) except IllegalMoveException as err : print ( err . message ) self . draw_board ( )
Handles a click on the board
Handles a click on the board
"""
        Handles a click on the board

        Args:
            pos: The x,y position of the click
        """ # only handle clicks during human turns and if they are on the board
 # get the column of the click
 # place the piece

self
pos
Tuple[float, float]
The x,y position of the click
The x y position of the click