Changeset 214

Show
Ignore:
Timestamp:
01/30/07 22:33:15 (1 year ago)
Author:
ug
Message:

Added examples about anchors to cpptest.cpp

Files:

Legend:

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

    r213 r214  
    5656  // ------------------- set up search pattern ---------------------------------------- 
    5757 
    58   Pattern p(CENTER_PATTERN, 19, 3, 3, ".X.XXXXOX"); 
     58  Pattern p(2,2,4,4, 19, 3, 3, ".X.XXXXOX", vector<MoveNC>()); // "fixed anchor" 
     59 
     60  // anchor varies only in small region of board: the first 4 entries  
     61  // (left, right, top, bottom) describe the rectangle which may contain the top left point of the pattern. 
     62  // The coordinates range from 0 to boardsize-1 
     63  // For example, CORNER_NW_PATTERN corresponds to (0,0,0,0) 
     64  // Pattern p(2,3,4,6, 19, 3, 3, ".X.XXXXOX", vector<MoveNC>());  
     65   
    5966  // Pattern p(CORNER_NW_PATTERN,19,8,8,"...................X......X.......XO......OO...................."); 
    6067  // Pattern p(CORNER_NW_PATTERN,19,7,7,".................X.....X......XO.....OO..........");