1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-30 03:50:34 +00:00

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

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);
}