perfecthash/PHK_eval.c
// This is a non-optimized method of determining the
// best five-card hand possible out of seven cards.
//
This is a non-optimized method of determining the
best five-card hand possible out of seven cards.
This is a non - optimized method of determining the best five - card hand possible out of seven cards .
short
eval_7hand_fast( int *hand )
{
    int i, j, q, best = 9999, subhand[5];
	for ( i = 0; i < 21; i++ )
	{
		q = eval_5hand_fast( hand[perm7[i][0]],
                         hand[perm7[i][1]],
                         hand[perm7[i][2]],
                         hand[perm7[i][3]],
                         hand[perm7[i][4]]);
		if ( q < best )
			best = q;
	}
	return( best );
}
short eval_7hand_fast ( int * hand ) { int i , j , q , best = 9999 , subhand [ 5 ] ; for ( i = 0 ; i < 21 ; i ++ ) { q = eval_5hand_fast ( hand [ perm7 [ i ] [ 0 ] ] , hand [ perm7 [ i ] [ 1 ] ] , hand [ perm7 [ i ] [ 2 ] ] , hand [ perm7 [ i ] [ 3 ] ] , hand [ perm7 [ i ] [ 4 ] ] ) ; if ( q < best ) best = q ; } return ( best ) ; }
This is a non-optimized method of determining the
best five-card hand possible out of seven cards.
This is a non - optimized method of determining the best five - card hand possible out of seven cards .