On Jan 6, 2008, at 9:42 AM, Sander Land wrote:

> class Array
>  def score
>    sort.inject(0){|s,c| s+c > 21 && c==11 ? s+1 : s+c }
>  end
> end

That has the some bug Eric found in Dennis's code:

 >> [10, 11, 11].score
=> 22

> unless ARGV[0]
> (2..11).each{|n| puts `ruby1.9 #{__FILE__} #{n}`}
> exit
> end

Clever trick.  I like that.

James Edward Gray II