Beispiel #1
0
def test4():
    game = mancala.MancalaGame()
    player_fn = lambda g, state: games.alphabeta_player2(game, state, game.evaluate_mancala(game))
    named_players = (('MAX', games.query_player_py_exp), ('MIN', player_fn))
    result=games.play_game2(game, named_players)
    print(result)
    return(result)
Beispiel #2
0
def test1():
    game = mancala.MancalaGame()
    named_players = (("MAX", games.query_player_py_exp),
                     ("MIN", games.query_player_py_exp))
    result = games.play_game2(game, named_players)
    print(result)
    return result
Beispiel #3
0
def test5(depth = 4):
    game = mancala.MancalaGame()
    player_fn = lambda g, state: games.alphabeta_player2(game, state, game.evaluate_mancala(game))
    # player_fn2 = lambda g, state: games.alphabeta_player2(game, state, game.evaluate_mancala(game))
    named_players = (('MAX', player_fn), ('MIN', games.alphabeta_player))
    result = games.play_game2(game, named_players)
    return (result)
Beispiel #4
0
def test4():
    game = mancala.MancalaGame()
    named_players = ((0, games.alphabeta_full_player),
                     (1, games.alphabeta_player))
    result = games.play_game2(game, named_players)
    print(result)
    return result
Beispiel #5
0
def test2():
    game = mancala.MancalaGame()
    named_players = ((0, games.query_player_py_exp), (1,
                                                      games.alphabeta_player))
    result = games.play_game2(game, named_players)
    print(result)
    return result
Beispiel #6
0
def test1():
    game = mancala.MancalaGame()
    named_players = (('Max', games.query_player_py_exp), ('Min',
                                                          games.random_player))
    games.play_game2(game, named_players)
Beispiel #7
0
def test4():
    game = mancala.MancalaGame()
    named_players = (('X', games.alphabeta_full_player),
                     ('O', games.alphabeta_player))
    games.play_game2(game, named_players)
Beispiel #8
0
def test3():
    game = mancala.MancalaGame()
    named_players = (('X', games.alphabeta_player2), ('O',
                                                      games.random_player))
    games.play_game2(game, named_players)
Beispiel #9
0
def test4():
    game = mancala.MancalaGame()
    named_players = (("MAX", player_fn), ("MIN", player_fn))
    result = games.play_game2(game, named_players)
    print(result)
    return result
Beispiel #10
0
def test3():
    game = mancala.MancalaGame()
    named_players = (('MAX', games.alphabeta_player), ('MIN', games.random_player))
    print(games.play_game2(game, named_players))
Beispiel #11
0
def test2():
    game = mancala.MancalaGame()
    named_players = (('MAX', games.query_player_py_exp), ('MIN', games.alphabeta_player))
    print(games.play_game2(game, named_players))
Beispiel #12
0
def test1():
    game = mancala.MancalaGame()
    named_players = (('MAX', games.query_player_py_exp), ('MIN', games.random_player))
    print(games.play_game2(game, named_players))