I did a Texas hold'm in python.
This is how i defined the deck(s)
(I do have a copy of Fluent Python, but i did not know about the card game.
I'll have a look later on)
Paul
This is how i defined the deck(s)
deck = [] d = ['A','2','3','4','5','6','7','8','9','X','J','Q','K'] t = ['H','S','D','C'] for card in d: for f in t: deck.append(f + card) random.shuffle(deck)The harder part is determining who won :-)
(I do have a copy of Fluent Python, but i did not know about the card game.
I'll have a look later on)
Paul