Diff
Not logged in

Differences From Artifact [fe18e86f2be2ed95]:

To Artifact [d9bf3ea129c7cbc5]:


390 390 dead=true; 391 391 } 392 392 } 393 393 else if(this[p]=='W') { 394 394 if(hige_day) { 395 395 for(int dy=-1; dy<=+1; ++dy) 396 396 for(int dx=-1; dx<=+1; ++dx) 397 - if(this[p.y+dy,p.x+dx] == ' ') 397 + if(this[p.y+dy,p.x+dx] == ' ') { 398 398 write(p.y+dy,p.x+dx,'W'); 399 + if(robot.y==p.y+dy-1 && robot.x==p.x+dx) 400 + dead = false; // guarded by hige! 401 + } 399 402 } 400 403 } 401 404 } 402 405 403 406 return dead; 404 407 } 405 408 }