The value of ACE in Black Jack

Jp Calderone exarkun at intarweb.us
Mon Feb 17 18:31:23 EST 2003


On Mon, Feb 17, 2003 at 09:42:47PM +0000, Alan Morgan wrote:
> In article <2bc4a.14614$le1.233 at news1.bredband.com>,
> Ole Jensen <ole_jensen at dbmail.dk.NO_SPAM> wrote:
> >In Black Jack the value of the ACE depends on the sum of your cards if the
> >sum is lower than 21, the value of your ACE is 11
> >however if the sum of your cards increase to more than 21(if ace counts for
> >11) then your ACE drops to the value of one.
> 
> Excuse me?  The value of an Ace is either 1 or 11.  It is assumed to be
> 1 if making it 11 would take your total over 21, but otherwise it is
> your choice.  If you have an ace and a six then you have either 7 or
> 17.
> 
> >How would you define the value of ACE in python to the rules of Black Jack?
> 
> The function that returns the value of your hand should return a list of
> possible values (there can only be two possibilities, so perhaps a list isn't
> the best choice).

  Except when dealt multiple aces ;)  A list sounds reasonable to me.

  Jp

-- 
"Pascal is Pascal is Pascal is dog meat."
                -- M. Devine and P. Larson, Computer Science 340
-- 
 up 9 days, 4:28, 3 users, load average: 0.02, 0.06, 0.02
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20030217/f446ce41/attachment.sig>


More information about the Python-list mailing list