def test_best_first_move_W(): tekst = ''' * * * * * * * * * * * * * * * * * * * * W B * * * * * W W * * * * B B W W * * * * * * * * * * * * * * * * * * * * * * * * * * * ''' plansza.load(tekst) move = best_first_move(player, plansza) assert move==(4,0)
def test_best_first_move_B(): tekst = ''' * * * * * * * * * * * * * * * * * * * * W B * * * * * W W W * * * B B W W * * * * * * * * * * * * * * * * * * * * * * * * * * * ''' plansza.load(tekst) player = Player('B') move = best_first_move(player, plansza) assert move==(4,5)