[Tutor] Using a Blackjack Chart...
joel.goldstick at gmail.com
Tue May 22 15:08:32 CEST 2012
On Tue, May 22, 2012 at 8:52 AM, Ken G. <beachkidken at gmail.com> wrote:
> I would like to create a Python program in the manner of an using flash card
> That is, a question is asked and you can respond according and you will be
> notify if
> you are correct or incorrect.
> Using such format stated above, I would like to create a Blackjack program.
> I wish
> to utilize a 'cheat sheet chart' format that provide the proper response.
> The chart has 10 rows across, being identified as the dealer's up card, from
> 2 to
> 10 plus Ace.
> There are 23 columns indicating the player's cards being shown, such as 8 to
> 13-16, 17+, A2 to A8 and 2,2 to A,A.
> Each row and column would indicate either Hit, DD (Double), S (Stand) and SP
> How can I best utilize such a chart in the Python program? Lists, Tuples,
> or perhaps, a database format such as SQL? I tried using MySQLdb but was
> to use it since I am using Ubuntu 10.04.4 (Linux) as my main OS. My other
> OS is
> Windows XP.
> Thank you for any suggestions or guidances.
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
There are lots of google results for python card games -- have you
As to mysql it works fine on linux. If your system doesn't have mysql
you can use synaptic package manager to get it Look for
mysql-server, mysql-client and python-mysqldb
import MySQLdb as mdb
More information about the Tutor