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 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
Terms and Conditions 10 or less cards: new shuffle One Deck consists of 5 x all cards Stats should always go on counting Maximum Draw: 5 cards
Functioning of the Group Team A: void show_welcomemsg(); Show a tiny welcome message . void show_dealerwinmsg() Show a message telling the player won the round. void show_stats(); Show the current statistics on the screen. void show_currentcards(); Show Player and Dealercards on the Screen intcheck_cards(int *dealercards, int *playercards, intdealernumcards, intplayernumcards); Check all cards for a win or a loose. void get_initialcards(); Set playercards and dealercards empty. Use function get_card() to get all the cards you need when a game starts.
Team B: void get_newcardset(int *carddeck); Generate a cardset with 160 (= 5 x 52) cards and shuffle them. Assigne them to array "carddeck" intget_card(int *carddeck); Get one card from the array "carddeck". Make sure the card is not accessible anymore and give it back as integer value. Team C: intget_dealerchoice(int *dealercards, int *playercards, intdealernumcards, intplayernumcards); Make the decision what the dealer does. Give back choice as 0 = hit, 1 = stand intget_playerchoice(); Ask what player does. Give back choice as 0 = hit, 1 = stand void get_newplayercard(); Get a new card from get_card() and add it to players cardarray. Increasplayernumcards. void get_newdealercard(); Get a new card from get_card() and add it to dealers cardarray. Increase dealernumcards. Team D: 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".
LET THE GAME BEGIN Welcome screen
LET THE GAME BEGIN Gamescreen