(self)
return [
            to_string((i, j))
            for i in range(8)
            for j in range(8)
            if (self.board[i, j] == 0)
            and (pieces_flipped(self.board, (i, j), self.current_player) != [])
        ]
Only moves that lead to flipped pieces are allowed
Only moves that lead to flipped pieces are allowed
Only moves that lead to flipped pieces are allowed
def possible_moves(self):
        """ Only moves that lead to flipped pieces are allowed """
        return [
            to_string((i, j))
            for i in range(8)
            for j in range(8)
            if (self.board[i, j] == 0)
            and (pieces_flipped(self.board, (i, j), self.current_player) != [])
        ]
def possible_moves ( self ) : return [ to_string ( ( i , j ) ) for i in range ( 8 ) for j in range ( 8 ) if ( self . board [ i , j ] == 0 ) and ( pieces_flipped ( self . board , ( i , j ) , self . current_player ) != [ ] ) ]