Beispiel #1
0
 def test_is_four_of_kind_and_pair(self):
     dice = [3, 3, 3, 3, 1, 1]
     score = Score(dice)
     self.assertEqual(score.score, 2500)
Beispiel #2
0
 def _is_scoring_selection(self, keepers):
     test_score = Score(keepers)
     return test_score.score > 0
Beispiel #3
0
 def test_is_3_pairs(self):
     dice = [6, 6, 5, 5, 3, 3]
     score = Score(dice)
     self.assertEqual(score.score, 1500)
Beispiel #4
0
 def test_50_points(self):
     score = Score([5, 2, 3, 3, 6])
     self.assertEqual(score.score, 50)
Beispiel #5
0
 def test_3ok_6(self):
     dice = [6, 6, 6]
     score = Score(dice)
     self.assertEqual(score.score, 600)
Beispiel #6
0
 def test_is_a_straight(self):
     dice = [3, 2, 4, 5, 1, 6]
     score = Score(dice)
     self.assertEqual(score.score, 1500)
Beispiel #7
0
 def test_3ok_4(self):
     dice = [4, 4, 4]
     score = Score(dice)
     self.assertEqual(score.score, 400)
Beispiel #8
0
 def test_3ok_5(self):
     dice = [5, 5, 5]
     score = Score(dice)
     self.assertEqual(score.score, 500)
Beispiel #9
0
 def test_3ok_3(self):
     dice = [3, 3, 3]
     score = Score(dice)
     self.assertEqual(score.score, 300)
Beispiel #10
0
 def test_3ok_2(self):
     dice = [2, 2, 2]
     score = Score(dice)
     self.assertEqual(score.score, 200)
Beispiel #11
0
 def test_2_100_points_and_1_50(self):
     score = Score([1, 1, 3, 3, 5])
     self.assertEqual(score.score, 250)
Beispiel #12
0
 def test_2_100_points(self):
     score = Score([1, 1, 3, 3, 6])
     self.assertEqual(score.score, 200)
Beispiel #13
0
 def test_100_points(self):
     score = Score([5, 5, 3, 3, 6])
     self.assertEqual(score.score, 100)