예제 #1
0
 def test_can_attack(self):
     board = self.get_wrong_board_full()
     assert not can_t_attack(4, board)
예제 #2
0
 def test_can_t_attach_soluce(self):
     board = self.get_board_soluce()
     assert can_t_attack(4, board)
예제 #3
0
 def test_can_t_attack_full(self):
     board = self.get_good_board_not_full()
     assert can_t_attack(4, board)
예제 #4
0
 def test_can_t_attack_empty(self):
     board = generate_board(4)
     assert can_t_attack(4, board)