def test_5(self): game = TicTacToe(['X', 'X', 'X', 'O', 'O', 'X', 'X', 'O', 'O']) self.assertEqual({ 3: { 'X': 1, 'O': 0 }, 2: { 'X': 0, 'O': 0 } }, game.count_lines(game.state))
def test_8(self): game = TicTacToe(['X', 1, 'X', 3, 'O', 5, 6, 'O', 'X']) self.assertEqual({ 3: { 'X': 0, 'O': 0 }, 2: { 'X': 2, 'O': 1 } }, game.count_lines(game.state))
def test_1(self): game = TicTacToe(['O', 1, 2, 3, 4, 5, 6, 7, 8]) self.assertEqual({ 3: { 'X': 0, 'O': 0 }, 2: { 'X': 0, 'O': 0 } }, game.count_lines(game.state))