src/quagen/worker.py
def handle_ai_movement(game):
    """
    Makes a move for any AI player which has yet to move in the passed
    game

    Args:
        game (Game): Current game to make moves for the AI

    """
    for i in range(game.settings["ai_count"]):
        ai_id = str(i)
        if not game.has_moved(ai_id):

            ai_strength = game.settings["ai_strength"]
            logging.info(f"Taking turn for AI { ai_id } with strength { ai_strength }")

            ai_method = BiasedAI(game, (i + 1), ai_strength)
            ai_x, ai_y = ai_method.choose_move()

            game.add_move(ai_id, ai_x, ai_y)

    Makes a move for any AI player which has yet to move in the passed
    game

    Args:
        game (Game): Current game to make moves for the AI

    
Makes a move for any AI player which has yet to move in the passed
game
Makes a move for any AI player which has yet to move in the passed game
def handle_ai_movement(game):
    for i in range(game.settings["ai_count"]):
        ai_id = str(i)
        if not game.has_moved(ai_id):
            ai_strength = game.settings["ai_strength"]
            logging.info(f"Taking turn for AI { ai_id } with strength { ai_strength }")
            ai_method = BiasedAI(game, (i + 1), ai_strength)
            ai_x, ai_y = ai_method.choose_move()
            game.add_move(ai_id, ai_x, ai_y)
def handle_ai_movement ( game ) : for i in range ( game . settings [ "ai_count" ] ) : ai_id = str ( i ) if not game . has_moved ( ai_id ) : ai_strength = game . settings [ "ai_strength" ] logging . info ( f"Taking turn for AI { ai_id } with strength { ai_strength }" ) ai_method = BiasedAI ( game , ( i + 1 ) , ai_strength ) ai_x , ai_y = ai_method . choose_move ( ) game . add_move ( ai_id , ai_x , ai_y )
Makes a move for any AI player which has yet to move in the passed
game
Makes a move for any AI player which has yet to move in the passed game
"""
    Makes a move for any AI player which has yet to move in the passed
    game

    Args:
        game (Game): Current game to make moves for the AI

    """
game
Current game to make moves for the AI
Current game to make moves for the AI