Popular recipes by Magnus Åhman http://code.activestate.com/recipes/users/4180631/2013-06-24T05:03:10-07:00ActiveState Code RecipesPoker hand calculation and comparison (Tcl) 2013-06-24T05:03:10-07:00Magnus Åhmanhttp://code.activestate.com/recipes/users/4180631/http://code.activestate.com/recipes/578539-poker-hand-calculation-and-comparison/ <p style="color: grey"> Tcl recipe 578539 by <a href="/recipes/users/4180631/">Magnus Åhman</a> (<a href="/recipes/tags/poker/">poker</a>). Revision 2. </p> <p>Calculates 1. the category of the hand (high card, one pair, etc...) and 2. the "kicker" values that act as tiebreakers to (possibly) distinguish two hands of the same category from each other. These two attributes, category and kickers, are then used by the cmp method to compare two hand objects and return -1, 0 or 1.</p>