コード例 #1
0
ファイル: strategies_test.py プロジェクト: agend07/otello
def test_random_move_wyrzuca_wyjatek():
    tekst = ''' * * * * * * * *
                * * * * * * * *
                * * * * * * * *
                * * * W W * * *
                * * * W W * * *
                * * * * * * * *
                * * * * * * * *
                * * * * * * * * ''' 
    plansza.load(tekst)
    random_move(player, plansza)
コード例 #2
0
ファイル: strategies_test.py プロジェクト: agend07/otello
def test_random_move_zwraca_ruch():
    x, y = random_move(player, plansza)
    assert 0<= x <8
    assert 0<= y <8