예제 #1
0
def test():
    state = GameState()
    match = Match(state, [neural_net_bot(), random_agent()], do_show=True, trunc_percentage=1 / 20)
    match.play()

    for player in (0, 1):
        print('\n')
        for i in match.get_data(player):
            print(i)

    match.plot()
예제 #2
0
def test_1():
    state = GameState()
    core = random_agent()
    print(core(state))
예제 #3
0
def test_2():
    state = GameState()
    agents = [random_agent(), random_agent()]
    match = Match(state=state, agents=agents, do_show=True)
    match.play()
예제 #4
0
def test_3():
    state = GameState([1, 5, 2, 0, 0,
                       1, 0, 0, 0, 0], handicap=-3)
    match = Match(state, [neural_net_bot(), random_agent()], do_show=True, trunc_percentage=1 / 20)
    match.play()
예제 #5
0
def test_2():
    state = GameState()
    match = Match(state, [neural_net_bot(), random_agent()], do_show=True, trunc_percentage=1 / 20)
    match.play()
예제 #6
0
def test_0():
    state = GameState()
    core = neural_net_bot()
    core.enter()
    print(core(state))