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()
def test_1(): state = GameState() core = random_agent() print(core(state))
def test_2(): state = GameState() agents = [random_agent(), random_agent()] match = Match(state=state, agents=agents, do_show=True) match.play()
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()
def test_2(): state = GameState() match = Match(state, [neural_net_bot(), random_agent()], do_show=True, trunc_percentage=1 / 20) match.play()
def test_0(): state = GameState() core = neural_net_bot() core.enter() print(core(state))