Computer Science - PowerPoint PPT Presentation

herne
computer science n.
Skip this Video
Loading SlideShow in 5 Seconds..
Computer Science PowerPoint Presentation
Download Presentation
Computer Science

play fullscreen
1 / 11
Download Presentation
Presentation Description
92 Views
Download Presentation

Computer Science

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Computer Science Project: BLACKJACK BY TEAM A

  2. 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

  3. 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

  4. 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.

  5. 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".

  6. LET THE GAME BEGIN Welcome screen

  7. LET THE GAME BEGIN Gamescreen

  8. BlackJack

  9. JackBlack

  10. Status

  11. THANK YOU