Brian Candler wrote: > On Sun, Jun 03, 2007 at 11:40:51PM +0900, Joshua Ballanco wrote: >> Crud, I just tested at http://golf.shinh.org/p.rb?FizzBuzz and you're >> right... >> >> For those interested, the code was: >> >> 1.upto(?d){|i,x|i%5>0||x=:Buzz;p i%3>0?x||i:"Fizz#{x}"} > ^^ > Why the ,x here? x is locally scoped within the block anyway, and it > works > without it. Yeah, I realized that shortly after posting this...still, I'm over by 2... Oh, and just to clarify my earlier suggestion of a 56 chr random code generator...my rough guestimate is that it would take all the computers on the earth working together about 10^80 times the age of the universe to find the solution... ...you know, just so all you golfers don't feel so bad. -Josh -- Posted via http://www.ruby-forum.com/.