コード例 #1
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))
コード例 #2
0
 def setUp(self):
     self.tavern = Building.GreenBuilding('Tavern', 1)
     self.university = Building.PurpleBuilding('University', 6)