Exemplo n.º 1
0
def test_random_move_wyrzuca_wyjatek():
    tekst = ''' * * * * * * * *
                * * * * * * * *
                * * * * * * * *
                * * * W W * * *
                * * * W W * * *
                * * * * * * * *
                * * * * * * * *
                * * * * * * * * ''' 
    plansza.load(tekst)
    random_move(player, plansza)
Exemplo n.º 2
0
def test_random_move_zwraca_ruch():
    x, y = random_move(player, plansza)
    assert 0<= x <8
    assert 0<= y <8