Ejemplo n.º 1
0
    def test_place(self):
        """ test placement of moves
            
        Test to see if the a player can place a piece
        """
        p1 = Player(Color.WHITE)
        hive = Hive()

        p1.place(Ant, HCP(1, 1), hive)

        self.assertFalse(hive.empty())
Ejemplo n.º 2
0
    def test_starting_pawn(self):
        board = Hive()
        piece = Spider(Color.BLACK)
        board.add(piece, HCP(0,0))

        self.assertFalse(board.empty())
Ejemplo n.º 3
0
 def test_blankboard(self):
     board = Hive()
     self.assertTrue(board.empty())