Diff
Not logged in

Differences From Artifact [cde4121762ca0c01]:

To Artifact [545a22e98c8c86c7]:


165 165 } 166 166 167 167 void opIndexAssign(char c, Pos p) 168 168 { 169 169 this[p.y, p.x] = c; 170 170 } 171 171 172 - Pos[] lambdas() { 172 + Pos[] lambdas() const { 173 173 Pos[] ans; 174 174 for(int y=1; y<=H; ++y) 175 175 for(int x=1; x<=W; ++x) 176 176 if(this[y,x] == '\\') 177 177 ans ~= new Pos(y,x); 178 178 return ans; 179 179 } 180 180 181 - bool cleared() 181 + bool cleared() const 182 182 { 183 183 for(int y=1; y<=H; ++y) 184 184 for(int x=1; x<=W; ++x) 185 185 if(this[y,x] == 'L' || this[y,x] == 'O') 186 186 return false; 187 187 return true; 188 188 }