I am updating a Yahtzee game.
(account deleted) 19 Dec 2017 15:06
I want to make this a Yahtzee game, using this code,
THIS IS THE DICE CODE
ClrDraw
FnOff
AxesOff
0→Xmin
0→Ymin
94→Xmax
62→Ymax
For(I,4,76,18
Line(I,21,I,35
Line(I,21,I+14,21
Line(I,35,I+14,35
Line(I+14,21,I+14,35
End
randInt(1,6,5→L₁
0→K
While not(K
getKey→K
End
For(I,1,5
18I-7→X
If fPart(L₁(I)/2)=.5
Pt-On(X,28,2
If L₁(I)≠1:Then
Pt-On(X-4,32,2
Pt-On(X+4,24,2
End
If L₁(I)>3:Then
Pt-On(X-4,24,2
Pt-On(X+4,32,2
End
If L₁(I)=6:Then
Pt-On(X-4,28,2
Pt-On(X+4,28,2
End
End
Pause
ClrDraw
AxesOn
FnOn
ZStandard
Output(1,1,"
But I want to see if I can make a good If conditional check for these combos for points,
TOP COMBOS={1, 2, 3, 4, 5, 6}
BOTTOM COMBOS={3 of a kind, 4 of a kind, full house, SM. straight, LG. straight, chance, and Yahtzee}
In case if you want to see what the mini electronic hand held Yahtzee game look like,
Is there any way to do this instead of doing several If's and no memory leaks?
By the way, it's my Birthday today. (If any of you don't care, I won't be offended)
Thank you for your help.
Hewwo, my name is Achak Claw. I was formerly BioHazard.