It does.  Thanks.

---
Shepherds are the best beasts!
----- Original Message ----- From: "Thomas Ward" <thomasward1...@gmail.com>
To: "Gamers Discussion list" <gamers@audyssey.org>
Sent: Thursday, November 25, 2010 10:12 AM
Subject: Re: [Audyssey] Blackjack Notes


Hi Charles,

That's basically the concept, and the game already does this. The
problem is in the game that it doesn't reduce all the aces that way.
So I'm going to add the ability to keep track of the number of aces in
the game so it will reduce all of them from 11 to 1 at the same time.

   if playerHand > 21 and playerAces > 0:
       playerHand = playerHand - (playerAces * 10)
   #End if


Make sense? It is a simple matter to fix. Just keep track of the
number of aces in the player's hand and reduce by 10 times the number
of aces.


On 11/25/10, Charles Rivard <woofer...@sbcglobal.net> wrote:
To correct the ace issue, can you set the game to reduce the value of the
drawn aces from 11 to 1 if the total exceeds 21? Would it be sort of a "If hand total equals 22 or greater, ace value equals 1, else ace value equals
11"?  I know this isn't Python, but am I on or near the right track?

---
Shepherds are the best beasts!

---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list, please send E-mail to gamers-ow...@audyssey.org.


---
Gamers mailing list __ Gamers@audyssey.org
If you want to leave the list, send E-mail to gamers-unsubscr...@audyssey.org.
You can make changes or update your subscription via the web, at
http://audyssey.org/mailman/listinfo/gamers_audyssey.org.
All messages are archived and can be searched and read at
http://www.mail-archive.com/gam...@audyssey.org.
If you have any questions or concerns regarding the management of the list,
please send E-mail to gamers-ow...@audyssey.org.

Reply via email to