def test_check_direction_ok_B(): plansza = Plansza() x,y = 5,3 dir = Point(-1,0) player = Player('B') result = player.check_direction(x, y, dir, plansza) assert result==True, 'ruch w tym kierunku powinien być możliwy'
def test_check_direction_wrong_B(): plansza = Plansza() x,y = 3,2 dir = Point(0,1) player = Player('B') result = player.check_direction(x, y, dir, plansza) assert result==False, 'ruch w tym kierunku powinien być możliwy'
def test_check_direction_wrong_W(): plansza = Plansza() x,y = 3,2 dir = Point(1,1) player = Player('W') result = player.check_direction(x, y, dir, plansza) assert result==False, 'ruch nieprawidłowy'