Exemplo n.º 1
0
def test_is_player_blocked_W_True():
    player = Player('W')
    plansza = Plansza()
    tekst = """ * * * * W * * *
                * * * * W * * *
                * * * * W * * *
                * * * * B * * *
                * * * B B * * *
                * * * B B * * *
                * * * * B * * *
                * * * * B * * * """
    plansza.load(tekst)
    player.think_and_move(plansza)
    assert player.blocked
Exemplo n.º 2
0
def test_is_player_blocked_W():
    player = Player('W')
    plansza = Plansza()
    player.think_and_move(plansza)
    assert not player.blocked