コード例 #1
0
 def test_board_create(self):
     board = Board()
     self.assertEqual(board.win(), None)
     self.assertEqual(board.tie(), False)
     for row in range(15):
         for col in range(15):
             self.assertEqual(board.get_square(row, col), 0)
コード例 #2
0
 def test_board_move(self):
     board = Board()
     board.move(1, 1, 'b')
     self.assertEqual(board.get_square(1, 1), 1)