mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-02 05:20:32 +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
|
// make it challenging
|
||||||
vector<int> ds;
|
vector<int> ds;
|
||||||
for(int d=0; d<ycw.at->type; d++) {
|
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))
|
if(celldistAlt((ycw+d).cpeek()) < celldistAlt(ycw.at))
|
||||||
ds.push_back(d);
|
ds.push_back(d);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user