Computer Science. Project: BLACKJACK BY TEAM A. Overview of the Project. Part A: Ram, Zaith Game control, scoring and user interface work team Part B: Dominik, Nayan Shuffle Part C: Avinash, Ruben
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
Part A: Ram, Zaith
Game control, scoring and user interface work team
Part B: Dominik, Nayan
Part C: Avinash, Ruben
Play of the user, play of the dealer
Part D: Marco, Max
Communication with the second board over the serial port
Part E: Tobi
Software architecture, system integration, project coordination
10 or less cards: new shuffle
One Deck consists of 5 x all cards
Stats should always go on counting
Maximum Draw: 5 cards
Show a tiny welcome message .
Show a message telling the player won the round.
Show the current statistics on the screen.
Show Player and Dealercards on the Screen
intcheck_cards(int *dealercards, int *playercards, intdealernumcards, intplayernumcards);
Check all cards for a win or a loose.
Set playercards and dealercards empty.
Use function get_card() to get all the cards you need when a game starts.
void get_newcardset(int *carddeck);
Generate a cardset with 160 (= 5 x 52) cards and shuffle them. Assigne them to array "carddeck"
Get one card from the array "carddeck". Make sure the card is not accessible anymore and give it back as integer value.
intget_dealerchoice(int *dealercards, int *playercards, intdealernumcards, intplayernumcards);
Make the decision what the dealer does. Give back choice as 0 = hit, 1 = stand
Ask what player does. Give back choice as 0 = hit, 1 = stand
Get a new card from get_card() and add it to players cardarray.
Get a new card from get_card() and add it to dealers cardarray.
intget_virtualplayerchoice(int *dealercards, int *playercards, intdealernumcards, intplayernumcards);
Make the decision what the virtual player does. Give back choice as 0 = hit, 1 = stand.
The function should splitted in a part for sending the information to the other MC and a part where the other MC makes the decision and sends it back.
We need an interupt for interface check. If interupt occurs, set gamemode = "automatic".