I am creating a Yahtzee program on my TI-Nspire CX, but when I get to the point of where you get to choose what you want to take points for, I don't know how to make the calculator confirm 3 of a kind, so that it would say that three of my 5 variables, a, b, c, d, and, e, each one representing a di, are equal, but the other 2 are not, how would i do this?
Date: 08 Nov 2013 01:52
Number of posts: 2
RSS: New posts
Something like this:
if a=b and b=c and d≠a then
//you can replace the "a" at d≠a and e≠a to b or c, it doesn't matter, as long as it's one of the three in those first two equations.
if a=b and b=d and c≠a and e≠a then
if a=b and b=e and c≠a and d≠a then
and so on, you'll have to find every single combo, which is why I hate programming on the nspire.