Jump to content

Yahtzee

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
I need some formulas to create a yahtzee calculator. Right now, I'm using a horribly inefficient algorithm of just creating combinations and checking which ones have the desired numbers in them, and that way I'll output the odds of rolling a 3, 4, and 5 in 4 dice. Are there formulas I could use instead? Well of course, but what are they? xD

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If you gave a couple of examples of what you're looking for, I could probably help. Mind you, some of the formulas may not be any better than brute force techniques.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
RobotGymnast

RobotGymnast

    Programmer

  • Members
  • PipPipPipPip
  • 143 posts
LOL! maybe I'll just stick to brute force then.. easiest to understand.