Check-in [c7b79323fc]
Not logged in
Overview
SHA1 Hash:c7b79323fced40d76bfc04555e6c7cd180dcd844
Date: 2012-07-14 12:25:31
User: kinaba
Comment:Water rising comes after robot water-proof judgement.
Timelines: family | ancestors | descendants | both | trunk
Diffs: redesign
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified test.d from [36818da9efe958b4] to [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;