Computer science
Download
1 / 11

Computer Science - PowerPoint PPT Presentation


  • 72 Views
  • Uploaded on

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

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Computer Science ' - herne


An Image/Link below is provided (as is) to download presentation

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.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Computer science

Computer Science

Project: BLACKJACK

BY

TEAM A


Overview of the project

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

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

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

Welcome screen


Let the game begin game screen

LET THE GAME BEGIN

Gamescreen






ad