Changeset 227

Show
Ignore:
Timestamp:
02/25/07 22:27:23 (1 year ago)
Author:
ug
Message:

Fixed bug when using move limit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 06/libkombilo/cpptest.cpp

    r224 r227  
    5656  // ------------------- set up search pattern ---------------------------------------- 
    5757 
    58   Pattern p(CENTER_PATTERN, 19, 2, 2, ".XXO", "D..F"); 
     58  // Pattern p(CENTER_PATTERN, 19, 2, 2, ".XXO", "D..F"); 
    5959 
     60  // Pattern p(CENTER_PATTERN, 19, 3, 3, ".X.XXXXOX", vector<MoveNC>()); 
    6061  // Pattern p(2,2,4,4, 19, 3, 3, ".X.XXXXOX", vector<MoveNC>()); // "fixed anchor" 
    6162 
     
    6667  // Pattern p(2,3,4,6, 19, 3, 3, ".X.XXXXOX", vector<MoveNC>());  
    6768   
    68   // Pattern p(CORNER_NW_PATTERN,19,8,8,"...................X......X.......XO......OO...................."); 
     69  Pattern p(CORNER_NW_PATTERN,19,8,8,"...................X......X.......XO......OO...................."); 
    6970  // Pattern p(CORNER_NW_PATTERN,19,7,7,".................X.....X......XO.....OO.........."); 
    7071  // Pattern p(CORNER_NW_PATTERN,19,7,7,".......................X........................."); 
     
    8182  // -------------------- set up search options ---------------------------------- 
    8283  SearchOptions so; 
     84  // SearchOptions so(0,0,50); // use move limit 
    8385  // so.searchInVariations = false; 
    8486  // so.nextMove = 2; 
  • 06/libkombilo/search.cpp

    r226 r227  
    15441544      if (counter.total_move_num() == movelimit+1) { 
    15451545        for(vector<MovelistCand* >::iterator it = cands->begin(); it != cands->end(); it++) { 
     1546          if (*it == 0) continue; 
    15461547          if (!(*it)->dictsFound) { 
    15471548            delete *it;