Beispiel #1
0
 def test_4_TypesCountHutWithOnlyJokerResources(self):
     hut = CountHut(5,4)
     resources = [Resource.joker]
     
     self.assertTrue(hut.tooFewDifferentTypes([0,0,0,0], resources.count(Resource.joker)))
     
     self.assertListEqual([Resource.wood,Resource.wood,Resource.clay,Resource.stone], sorted(hut.missing(resources)))
Beispiel #2
0
    def test_2_TypeCountHutWith_1_JokerResources(self):
        hut = CountHut(4,2)
        resources = [Resource.joker]
        
        self.assertTrue(hut.tooFewDifferentTypes([0,0,0,0], resources.count(Resource.joker)))

        self.assertEqual([Resource.wood,Resource.wood,Resource.wood], hut.missing(resources))