yendor:: more interesting path in Solv

This commit is contained in:
Zeno Rogue 2019-08-02 22:12:15 +02:00
parent 0720c93974
commit d6d613687b
1 changed files with 6 additions and 1 deletions

View File

@ -240,7 +240,12 @@ namespace yendor {
// make it challenging
vector<int> ds;
for(int d=0; d<ycw.at->type; d++) {
if(i < YDIST/2) {
bool increase;
if(sol)
increase = i < YDIST / 4 || i > 3 * YDIST / 4;
else
increase = i < YDIST/2;
if(increase) {
if(celldistAlt((ycw+d).cpeek()) < celldistAlt(ycw.at))
ds.push_back(d);
}