Friday, September 08, 2006

Ernest’s Casino

Ernest Ventura 11Aug05 Final Project Documentation

Description:

Ernest’s Casino is an electronic casino. It is composed of classical games featuring the Magnificent Blackjack, the Fantastic Poker, & the Simplified Roulette. In this version, the Magnificent Blackjack is under construction & the Fantastic Poker is designed to amuse gamblers of age 18 and below only. The Simplified Roulette is almost the electronic replica of the European/French Roulette game. It is a cool game due to the fact that every gambler is given a free starting balance of $500 which you can’t find anywhere else. Therefore, there is really nothing here to lose. This is a thrilling game and an awesome remedy for boredom.

Scope:

The casino is designed to expand at a later time. Initially, the Simplified Roulette will be the main feature. The source code for the Simplified roulette can be easily made as a standalone game. The simplicity of the casino’s program structure allows any programmer to add anew game as easy as copy-pasting code from another standalone game to the switch (game) function of the casino.

Minimum Requirements:

Ernest’s Casino Requirements:

The casino must be designed to be expandable, that is, later games may be easily added.

The casino must be initially composed of multiple game selections including the featured Simplified Roulette

Gambler Requirements:

The gambler must know how to read & follow simple instructions since the program can be vulnerable. E.g. a letter is entered instead of a number for input.

Simplified Casino Requirements:

The gambler begins with $500

The gambler can only choose one number (0 -10) at a time.

The roulette can only give one winning number (0 -10) per game.

The outcome can only be win or loss. No draw.

The gambler may play on table 1 if his/her balance is greater than or equal to $10

The gambler may play on either table 1 or 2 if his/her balance is greater than or equal to $50

The gambler may play on any of the 3 tables his/her balance is greater than or equal to $50

The gambler can only bet exactly $10, $50, or $100. No other bet amounts.

The gambler must enter valid input for his/her chosen number as well as for the table number before

the random-number-generated-wheel output the winning number

The gambler may choose to start over, transfer table, or leave the casino after each game.

The gambler must leave the casino when s/he is out of money.

Wheel Requirements:

The random-number-generated-wheel is composed of 11 numbers ranging from 0 to 10 making a bit over 9% winning probability for the gambler. A relatively high percentage compared to the standard.

Outcome requirements:

The gambler may choose to play from 3 tables only. $10, $50, & $100 are the bet values for tables 1-3 respectively.

Winning means that the gambler's balance is increased by the bet amount, losing means that the gambler loses his/her current bet amount.

Test Suit:

If number chosen = winning number

Then outcome = win

If outcome = win

Then increment balance by table bet value

If number chosen! = winning number

Then outcome = loss

If outcome = loss

Then decrement balance by table bet value

If balance is less than table bet value

Then deny request to play in the table

If number chosen is less than 0 or greater than 10

Then prompt input again until a valid value is entered

If table chosen is less than 1 or greater than 4

Then prompt input again until valid value is entered

If game chosen is less than 1 or greater than 4

Then prompt input again until a valid value is entered

If game 1 is chosen

Then display Magnificent Blackjack is not available and prompt game input again

If game 2 is chosen

Then display Fantastic Poker is for age 18 and below only and prompt game input again

If game 3 is chosen

Then open Simplified Roulette game

If game 4 is chosen

Then exit program

If table 1 is chosen

Then set bet value to $10

If table 2 is chosen

Then set bet value to $50

If table 3 is chosen

Then set bet value to $100

If table 4 is chosen

Then exit program and print current balance

0 Comments:

Post a Comment

<< Home