Example #1
0
def test_game_state_from_json_ally_starting(json_state):
    state, bans = mcts.game_state_from_json(json_state)
    assert state.ally_starting
Example #2
0
def test_game_state_from_json_ally_team(json_state):
    state, bans = mcts.game_state_from_json(json_state)
    assert state.ally_team == [1, 2, 3]
Example #3
0
def test_game_state_from_json_enemy_team(json_state):
    state, bans = mcts.game_state_from_json(json_state)
    assert state.enemy_team == [4, 5]
Example #4
0
def test_game_state_from_json_bans(json_state):
    state, bans = mcts.game_state_from_json(json_state)
    assert bans == {6, 7, 8, 9, 0}