# Path: tests/helpers.py
# def C(pos):
#     row = int(pos[1]) - 1
#     col = POS[pos[0]]
#     return row, col
# 
# WHITE = 1
# 
# BLACK = -1
# 
# NONE = 0


import unittest
        import chess
from .helpers import C, WHITE, BLACK, NONE
        from chess.models import Board
        from chess.models import win_maxinfractions
                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)
        board.white_infractions = 9
        board.black_infractions = 10

        result = self.get_win(board)
        self.assertEqual(result, WHITE)

    def test_blackwin(self):
        config = 'r......r' + \
                 'pppppppp' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)
        board.white_infractions = 10
        board.black_infractions = 9

        result = self.get_win(board)
        self.assertEqual(result, BLACK)





if __name__ == '__main__':

# Path: tests/helpers.py
# def C(pos):
#     row = int(pos[1]) - 1
#     col = POS[pos[0]]
#     return row, col
# 
# WHITE = 1
# 
# BLACK = -1
# 
# NONE = 0


# Path: tests/test_win_maxinfractions.py
import unittest
        import chess
from .helpers import C, WHITE, BLACK, NONE
        from chess.models import Board
        from chess.models import win_maxinfractions

                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)
        board.white_infractions = 9
        board.black_infractions = 10

        result = self.get_win(board)
        self.assertEqual(result, WHITE)

    def test_blackwin(self):
        config = 'r......r' + \
                 'pppppppp' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 '........' + \
                 'PPPPPPPP' + \
                 'R......R' 
        board = self.get_board(config)
        board.white_infractions = 10
        board.black_infractions = 9

        result = self.get_win(board)
        self.assertEqual(result, BLACK)





if __name__ == '__main__':

    unittest.main()