src/test_hand_indexing.cpp
// This will take quite a while and use a lot of memory.
This will take quite a while and use a lot of memory.
This will take quite a while and use a lot of memory .
static void CanonicalRiver(void) {
  unordered_set<unsigned int> s;
  Card board[5];
  for (Card f0 = 2; f0 < 52; ++f0) {
    fprintf(stderr, "f0 %i\n", f0);
    board[0] = f0;
    for (Card f1 = 1; f1 < f0; ++f1) {
      board[1] = f1;
      for (Card f2 = 0; f2 < f1; ++f2) {
	board[2] = f2;
	for (Card t = 0; t < 52; ++t) {
	  if (t == f0 || t == f1 || t == f2) continue;
	  board[3] = t;
	  for (Card r = 0; r < 52; ++r) {
	    if (r == f0 || r == f1 || r == f2 || r == t) continue;
	    board[4] = r;
	    Canonical(board, 3, &s);
	  }
	}
      }
    }
  }
}
static void CanonicalRiver ( void ) { unordered_set < unsigned int > s ; Card board [ 5 ] ; for ( Card f0 = 2 ; f0 < 52 ; ++ f0 ) { fprintf ( stderr , " \n " , f0 ) ; board [ 0 ] = f0 ; for ( Card f1 = 1 ; f1 < f0 ; ++ f1 ) { board [ 1 ] = f1 ; for ( Card f2 = 0 ; f2 < f1 ; ++ f2 ) { board [ 2 ] = f2 ; for ( Card t = 0 ; t < 52 ; ++ t ) { if ( t == f0 || t == f1 || t == f2 ) continue ; board [ 3 ] = t ; for ( Card r = 0 ; r < 52 ; ++ r ) { if ( r == f0 || r == f1 || r == f2 || r == t ) continue ; board [ 4 ] = r ; Canonical ( board , 3 , & s ) ; } } } } } }
This will take quite a while and use a lot of memory.
This will take quite a while and use a lot of memory .