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