This commit is contained in:
Rich Jones 2025-02-11 16:22:53 +01:00
parent b208dc664e
commit 0a4799d99a

View file

@ -116,7 +116,7 @@ class DiceDataset(ProceduralDataset):
"""
rng = Random(self.seed + idx)
puzzle = generate_puzzle(self.config.num_dice, self.config.max_dice_size, rng)
puzzle_str = f"I have these dice: {puzzle['dice_str']}. What are the odds of rolling {puzzle['target']} or higher? Please respond with a reduced fraction representing the probability [ex., 1/60]."
puzzle_str = f"I have these dice: {puzzle['dice_str']}. What are the odds of rolling {puzzle['target']} or higher? (Assume that all dice are rolled at once, and that '1d6' represents one roll of a 6-sided dice.) Please respond with a reduced fraction representing the probability [ex., 1/60]."
answer_str = f"{puzzle['num']}/{puzzle['den']}"
return {