Subversion Repositories Games.Chess Giants

Rev

Rev 154 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 154 Rev 156
Line 131... Line 131...
131
    InitializeHashTables(0);
131
    InitializeHashTables(0);
132
    Iterate(game_wtm, think, 0);
132
    Iterate(game_wtm, think, 0);
133
    thinking = 0;
133
    thinking = 0;
134
    nodes += tree->nodes_searched;
134
    nodes += tree->nodes_searched;
135
    total_time_used += (program_end_time - program_start_time);
135
    total_time_used += (program_end_time - program_start_time);
136
    nodes_per_second =
136
    nodes_per_second = (unsigned int) // Pierre-Marie Baty -- added type cast
137
        (uint64_t) tree->nodes_searched * 100 /
137
        ((uint64_t) tree->nodes_searched * 100 /
138
        Max((uint64_t) program_end_time - program_start_time, 1);
138
        Max((uint64_t) program_end_time - program_start_time, 1));
139
    if (pos % 7 == 0)
139
    if (pos % 7 == 0)
140
      Print(4095, "pos: ");
140
      Print(4095, "pos: ");
141
    Print(4095, "%2d(%s) ", pos + 1, DisplayKMB(nodes_per_second, 0));
141
    Print(4095, "%2d(%s) ", pos + 1, DisplayKMB(nodes_per_second, 0));
142
    if (pos % 7 == 6)
142
    if (pos % 7 == 6)
143
      Print(4095, "\n");
143
      Print(4095, "\n");
Line 183... Line 183...
183
      InitializeHashTables(0);
183
      InitializeHashTables(0);
184
      Iterate(game_wtm, think, 0);
184
      Iterate(game_wtm, think, 0);
185
      thinking = 0;
185
      thinking = 0;
186
      nodes += tree->nodes_searched;
186
      nodes += tree->nodes_searched;
187
      total_time_used += (program_end_time - program_start_time);
187
      total_time_used += (program_end_time - program_start_time);
188
      nodes_per_second =
188
      nodes_per_second = (unsigned int) // Pierre-Marie Baty -- added type cast
189
          (uint64_t) tree->nodes_searched * 100 /
189
          ((uint64_t) tree->nodes_searched * 100 /
190
          Max((uint64_t) program_end_time - program_start_time, 1);
190
          Max((uint64_t) program_end_time - program_start_time, 1));
191
      Print(4095, "%2d(%s) ", pos + 1, DisplayKMB(nodes_per_second, 0));
191
      Print(4095, "%2d(%s) ", pos + 1, DisplayKMB(nodes_per_second, 0));
192
    }
192
    }
193
  }
193
  }
194
 /*
194
 /*
195
  ************************************************************
195
  ************************************************************