Ejemplo n.º 1
0
    def test_finds_valid_starting_moves_for_black(self):
        board = Board()
        board.reset()

        expected_starting_moves = [
            "5-9", "6-9", "6-10", "7-10", "7-11", "8-11", "8-12"
        ]
        assert board.valid_moves("black") == expected_starting_moves
Ejemplo n.º 2
0
    def test_finds_valid_starting_moves_for_white(self):
        board = Board()
        board.reset()

        expected_starting_moves = [
            "25-21",
            "25-22",
            "26-22",
            "26-23",
            "27-23",
            "27-24",
            "28-24",
        ]
        assert board.valid_moves("white") == expected_starting_moves