def test_bWD4_correctValues(self):
     self._assertListsEq([(_Posn(6, 0), _Posn(5, 0)),
                          (_Posn(6, 0), _Posn(4, 0)),
                          (_Posn(6, 1), _Posn(5, 1)),
                          (_Posn(6, 1), _Posn(4, 1)),
                          (_Posn(6, 2), _Posn(5, 2)),
                          (_Posn(6, 2), _Posn(4, 2)),
                          (_Posn(6, 3), _Posn(5, 3)),
                          (_Posn(6, 3), _Posn(4, 3)),
                          (_Posn(6, 4), _Posn(5, 4)),
                          (_Posn(6, 4), _Posn(4, 4)),
                          (_Posn(6, 5), _Posn(5, 5)),
                          (_Posn(6, 5), _Posn(4, 5)),
                          (_Posn(6, 6), _Posn(5, 6)),
                          (_Posn(6, 6), _Posn(4, 6)),
                          (_Posn(6, 7), _Posn(5, 7)),
                          (_Posn(6, 7), _Posn(4, 7)),
                          (_Posn(7, 1), _Posn(5, 0)),
                          (_Posn(7, 1), _Posn(5, 2)),
                          (_Posn(7, 6), _Posn(5, 5)),
                          (_Posn(7, 6), _Posn(5, 7))],
                         enumMoves(getBoardWD4(), _b))
Ejemplo n.º 2
0
 def test_bWD4_correctValues(self):
     self._assertListsEq([(_Posn(6, 0), _Posn(5, 0)),
                          (_Posn(6, 0), _Posn(4, 0)),
                          (_Posn(6, 1), _Posn(5, 1)),
                          (_Posn(6, 1), _Posn(4, 1)),
                          (_Posn(6, 2), _Posn(5, 2)),
                          (_Posn(6, 2), _Posn(4, 2)),
                          (_Posn(6, 3), _Posn(5, 3)),
                          (_Posn(6, 3), _Posn(4, 3)),
                          (_Posn(6, 4), _Posn(5, 4)),
                          (_Posn(6, 4), _Posn(4, 4)),
                          (_Posn(6, 5), _Posn(5, 5)),
                          (_Posn(6, 5), _Posn(4, 5)),
                          (_Posn(6, 6), _Posn(5, 6)),
                          (_Posn(6, 6), _Posn(4, 6)),
                          (_Posn(6, 7), _Posn(5, 7)),
                          (_Posn(6, 7), _Posn(4, 7)),
                          (_Posn(7, 1), _Posn(5, 0)),
                          (_Posn(7, 1), _Posn(5, 2)),
                          (_Posn(7, 6), _Posn(5, 5)),
                          (_Posn(7, 6), _Posn(5, 7))],
                         enumMoves(getBoardWD4(), _b))
 def test_bWD4_allLegalMoves(self):
     self._allLegalMoves(getBoardWD4(), _b, enumMoves(getBoardWD4(), _b))
 def test_bWD4_correctLen(self):
     self.assertEqual(28, len(enumMoves(getBoardWD4(), _w)))
Ejemplo n.º 5
0
 def test_bWD4_allLegalMoves(self):
     self._allLegalMoves(getBoardWD4(), _b, enumMoves(getBoardWD4(), _b))
Ejemplo n.º 6
0
 def test_bWD4_correctLen(self):
     self.assertEqual(28, len(enumMoves(getBoardWD4(), _w)))