コード例 #1
0
ファイル: test_board.py プロジェクト: TTitcombe/AlphaDraughts
    def test_cant_move_other_teams_pieces(self):
        board = Board()
        board.reset()

        assert not board.validate_move(26, 23, "black")
        assert not board.validate_move(6, 10, "white")
コード例 #2
0
ファイル: test_board.py プロジェクト: TTitcombe/AlphaDraughts
    def test_cant_move_into_occupied_space(self):
        board = Board()
        board.reset()

        assert not board.validate_move(29, 25, "white")
        assert not board.validate_move(1, 6, "black")
コード例 #3
0
ファイル: test_board.py プロジェクト: TTitcombe/AlphaDraughts
    def test_that_cant_move_into_existing_piece(self):
        board = Board()
        board.reset()

        assert not board.validate_move(29, 25, "white")
        assert not board.validate_move(1, 6, "black")