Computer Science Canada Having problems comparing values |
Author: | Frennic [ Fri Apr 15, 2005 4:03 pm ] |
Post subject: | Having problems comparing values |
I am trying to write a Yahtzee-esque game, and I am at a standstill. I have looked through the keyword help for commands that might help, but have found none. Right now, my program will roll five dice, display the graphics, and that's it. I would really appreciate any assistance in finding a command to compare the values of the five vaiables (having it recognize pairs, three-of-a-kinds, etc) Thanks, Frennic |
Author: | Tony [ Fri Apr 15, 2005 4:31 pm ] |
Post subject: | |
Even though the following links deal with cards, you might find the ideas from them to be useful. http://www.compsci.ca/v2/viewtopic.php?t=7651&highlight=cards http://www.compsci.ca/v2/viewtopic.php?t=7184&highlight=cards |
Author: | Bored [ Sat Apr 16, 2005 1:15 pm ] | ||
Post subject: | |||
Maybe have a function that will return the type of card for example here's one that will see however many of a kind you rolled and return it.
|
Author: | Frennic [ Mon Apr 18, 2005 11:56 am ] |
Post subject: | |
Awesome... thanks guys... I'l give these a shot tonight when I get home. I''ll let you know how it goes. Frennic |