On Fri, 30 Apr 2010 06:23:44 am Shurui Liu (Aaron Liu) wrote:
> Here is the code of this game. I want to change some part of them.
> 1. Since I don't know what part of code is "responsible" for the
> number of cards, so I don't know how to add a "card number check"
> attribute, I mean, to check th
"Shurui Liu (Aaron Liu)" wrote
Your sig says you are studying Comp Sci and engineering.
You have posted the code for what is really a very, very, small program.
In the real world you will be expected to read and understand much
bigger programs than this - think about 1000+ files and half a mil
On 04/30/10 06:23, Shurui Liu (Aaron Liu) wrote:
> # Blackjack
> # From 1 to 7 players compete against a dealer
>
>
> Here is the code of this game. I want to change some part of them.
> 1. Since I don't know what part of code is "responsible" for the
> number of cards, so I don't know how to ad
# Blackjack
# From 1 to 7 players compete against a dealer
import cards, games
class BJ_Card(cards.Card):
""" A Blackjack Card. """
ACE_VALUE = 1
def get_value(self):
if self.is_face_up:
value = BJ_Card.RANKS.index(self.rank) + 1
if value > 10: