Prev: 92C6 Up: Map Next: 9341
9337: Calculate Hand
Used by the routine at CountSuits.
Clear down the evaluation table.
CalculateHand 9337 LD HL,$949B HL=TableHandEvaluation_Type.
933A LD B,$07 Set a counter in B for the 07 evaluation metrics the game utilises.
Reset all the evaluation metrics.
ResetEvaluationTable_Loop 933C LD (HL),$00 Write 00 to the evaluation metric.
933E INC HL Increment the evaluation metric pointer by one.
933F DJNZ ResetEvaluationTable_Loop Decrease the metrics counter by one and loop back to ResetEvaluationTable_Loop all the evaluation metrics have been reset.
Continue on to CheckStraightFlush.
Prev: 92C6 Up: Map Next: 9341