From: Robert Dober Date: 2008-11-25T07:51:43+09:00 Subject: Re: [QUIZ] Befunge (#184) On Mon, Nov 24, 2008 at 11:01 PM, Matthew Moss wrote: > Hopefully the quiz isn't intimidating... No but the debugger is so much work, and without the debugger there is nothing my code does more than your's ;), but I have two weeks to finish it ;) I guess you have some small typos here > when ?. > puts pop I guess this has to go > when ?. > print pop shouldn't there be a space printed too? > when ?~ > print "chr?> " > push gets[0] # Ruby 1.8, maybe not 1.9? x= gets push( x.bytes.first rescue x[0] ) > when :north > @pc[0] = (@pc[0] - 1 + @hgt) % @hgt I guess the + @hgt is a nop but ok it makes the reader more comfortable with the code :), OTOH it took me some time to work it's purpose out. Cheers Robert -- Ne baisse jamais la tête, tu ne verrais plus les étoiles. Robert Dober ;)