From: Denis Hennessy Date: 2008-01-05T20:25:11+09:00 Subject: Re: [QUIZ] Studying Blackjack (#151) --Apple-Mail-9--5044765 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On 4 Jan 2008, at 22:31, James Gray wrote: > On Jan 4, 2008, at 4:27 PM, Sharon Phillips wrote: > >>> Write a Ruby program that shows the percent chance of a dealer >>> reaching each >>> possible outcome based on the upcard showing >> >> Are we able to post partial / full outcomes within the 48 hours? > > You bet. Feel free. > > James Edward Gray II > Here's my results so far. I don't completely trust them yet since I'm not sure I understand the blackjack rules properly (I'm assuming the dealer has to use an ace as 11 unless they bust). /dh $ ./blackjack.rb Odds for each dealer outcome based on initial upcard (2 deck game) 17 18 19 20 21 BUST A 12.58% 12.82% 12.75% 12.85% 36.07% 12.93% 2 13.93% 13.33% 13.07% 12.39% 11.92% 35.36% 3 13.27% 13.06% 12.45% 12.18% 11.53% 37.50% 4 13.07% 12.02% 12.10% 11.63% 11.31% 39.88% 5 12.10% 12.28% 11.73% 10.90% 10.73% 42.25% 6 16.62% 10.62% 10.67% 10.12% 9.75% 42.21% 7 37.05% 13.82% 7.80% 7.88% 7.34% 26.11% 8 12.97% 36.12% 12.90% 6.89% 6.96% 24.16% 9 12.09% 11.20% 35.41% 12.11% 6.10% 23.09% 10 11.29% 11.22% 11.30% 33.56% 11.31% 21.32% J 11.29% 11.22% 11.30% 33.56% 11.31% 21.32% Q 11.29% 11.22% 11.30% 33.56% 11.31% 21.32% K 11.29% 11.22% 11.30% 33.56% 11.31% 21.32% --Apple-Mail-9--5044765--