Changeset 253 for 06/libkombilo/search.cpp
- Timestamp:
- 06/02/07 16:04:49 (1 year ago)
- Files:
-
- 06/libkombilo/search.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
06/libkombilo/search.cpp
r252 r253 1777 1777 1778 1778 while (movelistIndex < endMovelist) { 1779 // printf("\nnextmove %d\n", counter.total_move_num()); 1779 1780 if (counter.total_move_num() == movelimit+1) { 1780 1781 for(vector<MovelistCand* >::iterator it = cands->begin(); it != cands->end(); it++) { … … 1845 1846 if (*it == 0) continue; 1846 1847 if ((*it)->in_relevant_region(x,y)) { 1848 // printf("loop 1\n %c", (*it)->dictsget(x,y)); 1847 1849 if ((*it)->dictsFound) { // found, so now we have found the continuation 1850 // printf("found\n"); 1848 1851 char* label; 1849 1852 label = patternList.updateContinuations( … … 1893 1896 } else { 1894 1897 (*it)->dictsset(x,y,'.'); 1895 (*it)->dictsNO++; 1898 (*it)->dictsNO++; // printf("++ A\n"); 1896 1899 } 1897 1900 } else if ((*it)->dictsget(x,y) == lower_invco) { … … 1904 1907 continue; 1905 1908 } else (*it)->dictsDR = true; 1906 } else (*it)->dictsNO++; 1909 } else (*it)->dictsNO++; // printf("++ B\n"); 1907 1910 } else if ((*it)->dictsget(x,y) == co) { 1908 1911 // this move gives us the stone we are looking for 1909 1912 (*it)->dictsset(x,y,0); 1910 (*it)->dictsNO--; 1913 (*it)->dictsNO--; // printf("-- A\n"); 1911 1914 } 1912 1915 } … … 1917 1920 co = 'X'; 1918 1921 invco = 'O'; 1922 lower_invco = 'o'; 1919 1923 } else if (movel[movelistIndex+1] & WHITE) { 1920 1924 co = 'O'; 1921 1925 invco = 'X'; 1926 lower_invco = 'x'; 1922 1927 } 1923 1928 1924 1929 for(vector<MovelistCand* >::iterator it = cands->begin(); it != cands->end(); it++) { 1930 // printf("loop 2\n"); 1925 1931 if (*it == 0) continue; 1926 1932 if (!(*it)->dictsFound) { // not found yet … … 1953 1959 // since it was captured, we are once again looking for it: 1954 1960 (*it)->dictsset(x,y,co); 1955 (*it)->dictsNO++; 1961 (*it)->dictsNO++; // printf("++ C\n"); 1956 1962 } 1957 1963 else if ((*it)->dictsget(x,y) == lower_invco) { 1958 (*it)->dictsNO--; 1964 (*it)->dictsNO--; // printf("-- B\n"); 1959 1965 } 1960 1966 else if ((*it)->dictsget(x,y) == '.') { 1961 1967 // we are looking for an empty spot here, so this capture is helpful: 1962 1968 (*it)->dictsset(x,y,0); 1963 (*it)->dictsNO--; 1969 (*it)->dictsNO--; // printf("-- C\n"); 1964 1970 } 1965 1971 }
