コード例 #1
0
ファイル: test_ai.py プロジェクト: GRUPO-ES2-GJLRT/XADREZ_ES2
 def test_black_king_count(self):
     board = Board(True)
     self.assertEqual(board.count(BLACK, KING), 1)
コード例 #2
0
ファイル: test_ai.py プロジェクト: GRUPO-ES2-GJLRT/XADREZ_ES2
 def test_black_pawns_count(self):
     board = Board(True)
     self.assertEqual(board.count(BLACK, PAWN), 8)
コード例 #3
0
ファイル: test_ai.py プロジェクト: GRUPO-ES2-GJLRT/XADREZ_ES2
 def test_white_king_count(self):
     board = Board(True)
     self.assertEqual(board.count(WHITE, KING), 1)
コード例 #4
0
ファイル: test_ai.py プロジェクト: GRUPO-ES2-GJLRT/XADREZ_ES2
 def test_white_pawns_count(self):
     board = Board(True)
     self.assertEqual(board.count(WHITE, PAWN), 8)