Home
Name Modified Size InfoDownloads / Week
t-blackjack-beta.zip 2011-04-02 125.9 kB
README 2011-04-02 1.3 kB
Totals: 2 Items   127.2 kB 5
Simple Blackjack game (developed as Assignment 1 for ITEC802@MQ)

A game of Blackjack is played against the “House” (Casino). There are several
versions of this game and I am explaining one of the versions. The idea of
the game is to have 21 as the total value, where numerical cards have usual
values, Jack, Queen and King are valued at 10 and Ace can be treated as 1 OR
10 by the player and house. The player comes in with a fixed amount of money
(configurable). The house deals two cards to the player and itself, one at a
time, in that order. To play a game, the player has to pay an initial amount
(configurable) to play the game. The player can then choose to ask for more
cards, till

(a) (s)he is happy/ confident of his/her cards (happens usually at
an accumulated value between 18 and 21)

(b) (s)he goes bust (total exceeds 21) Automatic loss

Once the player completes his/her turn of getting more cards,
the house does the same (house has to ask for more cards until it reaches 17)
and if both are still in the game after that, the one with higher value
(<=21) wins. For more information about this game, please refer to
http://en.wikipedia.org/wiki/Blackjack.

@TODO: finish support for multiple players
       finish evaluation when multiple players win (same score -- split)

Source: README, updated 2011-04-02