All pastes #2126021 Raw Edit

Someone

public text v1 · immutable
#2126021 ·published 2012-03-08 02:53 UTC
rendered paste body
s = point (null on start)
f = point (null on start)
for(x = 0; x < maze.width; x++){
    for(y = 0; y < maze.height; y++){
         if(maze.cells[x][y] == 's'){
             s = (x,y);
         } else if( maze.cells[x][y] == 'f') {
             f = (x,y)
         } 
         if(s != null && f != null)
             break;
     }
     if(s != null && f != null)
             break;
}