Example #1
0
 def setUp(self):
     starting_deck = [
         Building.GreenBuilding('Tavern', 1),
         Building.GreenBuilding('Tavern', 1),
         Building.BlueBuilding('Temple', 1),
         Building.BlueBuilding('Chapel', 2)
     ]
     self.player = Player.Player("Napoleon", starting_deck)
Example #2
0
    def initialize_starting_deck(self):
        for i in range(5):
            self.add(Building.GreenBuilding("Tavern", 1))
        for i in range(4):
            self.add(Building.GreenBuilding("Market", 2))
        for i in range(3):
            self.add(Building.GreenBuilding("Merchant's House", 2))
            self.add(Building.GreenBuilding("Dock", 3))
            self.add(Building.GreenBuilding("Port", 4))
        for i in range(2):
            self.add(Building.GreenBuilding("Town Hall", 5))

        for i in range(3):
            self.add(Building.BlueBuilding("Temple", 1))
            self.add(Building.BlueBuilding("Chapel", 2))
            self.add(Building.BlueBuilding("Monastery", 3))
        for i in range(2):
            self.add(Building.BlueBuilding("Cathedral", 5))

        for i in range(3):
            self.add(Building.RedBuilding("Sentry Tower", 1))
            self.add(Building.RedBuilding("Jail", 2))
            self.add(Building.RedBuilding("Warfield", 3))
        for i in range(2):
            self.add(Building.RedBuilding("Stronghold", 5))

        for i in range(5):
            self.add(Building.YellowBuilding("Estate", 3))
        for i in range(4):
            self.add(Building.YellowBuilding("Castle", 4))
        for i in range(3):
            self.add(Building.YellowBuilding("Palace", 5))

        self.add(Building.PurpleBuilding("University", 6))
        self.add(Building.PurpleBuilding("Dragon's Gate", 6))
Example #3
0
    def setUp(self):
        self.starting_deck = [
            Building.GreenBuilding("Tavern", 1),
            Building.YellowBuilding("Estate", 3),
            Building.BlueBuilding("Temple", 1),
            Building.RedBuilding("Jail", 2)
        ]
        self.player = Player.Player("Napoleon", self.starting_deck)

        self.assassin = Role.Assassin()
        self.thief = Role.Thief()
        self.mage = Role.Mage()
        self.king = Role.King()
        self.bishop = Role.Bishop()
        self.merchant = Role.Merchant()
        self.architect = Role.Architect()
        self.warlord = Role.Warlord()
        self.roles = [
            self.assassin, self.thief, self.mage, self.king, self.bishop,
            self.merchant, self.architect, self.warlord
        ]
Example #4
0
 def setUp(self):
     self.tavern = Building.GreenBuilding('Tavern', 1)
     self.university = Building.PurpleBuilding('University', 6)
Example #5
0
 def test_add_card(self):
     new_deck = BuildingDeck.BuildingDeck()
     new_deck.add(Building.GreenBuilding("Tavern", 1))
Example #6
0
 def test_green_taxing(self):
     tavern = Building.GreenBuilding('Tavern', 1)
     self.player.build_building(tavern)
     self.player.tax()
     self.assertEqual(self.player.get_gold(), 2)