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:
parent
0720c93974
commit
d6d613687b
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user