def test_six_ones_rolled_four_victory_points_awarded(): dice = collections.Counter([ DieValue.ONE, DieValue.ONE, DieValue.ONE, DieValue.ONE, DieValue.ONE, DieValue.ONE, ]) assert dice_resolver.calculate_victory_points_from_dice(dice) == 4
def test_less_than_three_twos_rolled_no_victory_points_awarded(): dice = collections.Counter([ DieValue.TWO, DieValue.TWO, DieValue.HEAL, DieValue.ATTACK, DieValue.HEAL, DieValue.ATTACK, ]) assert dice_resolver.calculate_victory_points_from_dice(dice) == 0
def test_five_threes_rolled_five_victory_points_awarded(): dice = collections.Counter([ DieValue.THREE, DieValue.THREE, DieValue.THREE, DieValue.THREE, DieValue.THREE, DieValue.ATTACK, ]) assert dice_resolver.calculate_victory_points_from_dice(dice) == 5
def test_seven_twos_rolled_six_victory_points_awarded(): dice = collections.Counter([ DieValue.TWO, DieValue.TWO, DieValue.TWO, DieValue.TWO, DieValue.TWO, DieValue.TWO, DieValue.TWO ]) assert dice_resolver.calculate_victory_points_from_dice(dice) == 6