Diff
Not logged in

Differences From Artifact [36818da9efe958b4]:

To Artifact [487b856e16418ffe]:


151 151 if(!lambda) 152 152 next[y][x] = 'O'; 153 153 } 154 154 } 155 155 data = next; 156 156 157 157 if(flooding) { 158 - flooding_counter ++; 159 - if(flooding_counter == flooding) { 160 - flooding_counter = 0; 161 - water --; 162 - } 163 158 bool wa = false; 164 159 for(int y=water; y+1<H; ++y) 165 160 for(int x=1; x+1<W; ++x) 166 161 if(data[y][x]=='R') { 167 162 wa = true; 168 163 underwater++; 169 164 if(underwater > water_proof) 170 165 dead = true; 171 166 } 172 - if(!wa) 173 - underwater = 0; 167 + flooding_counter ++; 168 + if(flooding_counter == flooding) { 169 + flooding_counter = 0; 170 + water --; 171 + } 174 172 } 175 173 } 176 174 177 175 int clever() 178 176 { 179 177 if(dead) 180 178 return 0;