Ejemplo n.º 1
0
def test_get_count():
    """test GameManager get_count method"""
    game_manager = GameManager(400, 400, 100)
    game_manager.tile_grid[1][3].change_state("PLAYER")
    game_manager.get_fake_tile_grid()
    game_manager.get_count()
    assert game_manager.black_count == 3
    assert game_manager.white_count == 2
Ejemplo n.º 2
0
def test_get_fake_tile_grid():
    """test GameManager get_fake_tile_grid method"""
    game_manager = GameManager(400, 400, 100)
    game_manager.get_fake_tile_grid()
    assert game_manager.fake_tile_grid[1][1].current_state == "AI"
    game_manager.tile_grid[1][3].change_state("PLAYER")
    game_manager.get_fake_tile_grid()
    assert game_manager.fake_tile_grid[1][3].current_state == "PLAYER"