Check-in [41c73506fb]
Not logged in
Overview
SHA1 Hash:41c73506fb52453343279288a023495328b756e7
Date: 2012-07-15 11:05:53
User: kinaba
Comment:Gets razor.
Timelines: family | ancestors | descendants | both | trunk
Diffs: redesign
Downloads: Tarball | ZIP archive
Other Links: files | file ages | manifest
Tags And Properties
Changes

Modified src/game.d from [de7a471045510ac0] to [89ef01bfcc63d3cd].

253 int y = robot.y; 253 int y = robot.y; 254 int x = robot.x; 254 int x = robot.x; 255 assert( this[robot] == 'R' ); 255 assert( this[robot] == 'R' ); 256 int lambda = 0; 256 int lambda = 0; 257 bool dead = false; 257 bool dead = false; 258 if( '\\' == this[y+dy,x+dx] ) 258 if( '\\' == this[y+dy,x+dx] ) 259 lambda++; 259 lambda++; > 260 if( '!' == this[y+dy,x+dx] ) > 261 razor++; 260 if( " \\.O".count(this[y+dy,x+dx])==1 ) { | 262 if( " \\!.O".count(this[y+dy,x+dx])==1 ) { 261 this[y,x]=' '; 263 this[y,x]=' '; 262 this[y+dy,x+dx]='R'; 264 this[y+dy,x+dx]='R'; 263 robot = new Pos(y+dy,x+dx); 265 robot = new Pos(y+dy,x+dx); 264 } else if(dy==0 && '*'==this[y+dy,x+dx] && ' '==this[y+dy*2,x+dx 266 } else if(dy==0 && '*'==this[y+dy,x+dx] && ' '==this[y+dy*2,x+dx 265 this[y,x]=' '; 267 this[y,x]=' '; 266 this[y+dy,x+dx]='R'; 268 this[y+dy,x+dx]='R'; 267 this[y+dy*2,x+dx*2]='*'; 269 this[y+dy*2,x+dx*2]='*';