@@ -393,10 +393,13 @@ else if(this[p]=='W') { if(hige_day) { for(int dy=-1; dy<=+1; ++dy) for(int dx=-1; dx<=+1; ++dx) - if(this[p.y+dy,p.x+dx] == ' ') + if(this[p.y+dy,p.x+dx] == ' ') { write(p.y+dy,p.x+dx,'W'); + if(robot.y==p.y+dy-1 && robot.x==p.x+dx) + dead = false; // guarded by hige! + } } } }