Shared Flashcard Set

Details

Preliminary Roulette Class Structure
explains who are the characters and actors, and what do they do
11
Computer Science
Not Applicable
12/05/2012

Additional Computer Science Flashcards

 


 

Cards

Term

Outcome: 

 

responsibilities?

Definition

Responsibilities: A name for the bet and payout odds. This Isolates the calculation of the payout amount.

For example: "Red" "1:1"

Term

Outcome:

 

 

Callaborators?

Definition
Calloborators: Collected by "wheel" into the bins that reflect the bets that win; Also collected by "table" into the available bets for the "player" ; used by "Game" to compute the amount won from the amount that was bet.
Term

Wheel:

 

responsibilities?

Definition
Selects the "outcomes" that win. This isolates the  use of a random number generator to select "outcome"s and it encapsulates the set of winning "outcome"s that associated with each individual number on the wheel. Example: the "1" bin has the following winning "outcome"s "1"  "Red", "odd", "low", "Column 1" "Dozen 1-12" "Split 1-4" "Split 1-2" "street 123" "Corner 1245" "Five bet" "line 123456" "00-0-1-2-3
Term

Wheel:

 

Collabarators?

Definition
Collects the "outcome"s into bins; used by the overall "Game" to get the next set of winning "outcome"s.
Term

Table: 

 

Responsiblity?

Definition
A collection of bets placed on "outcome"s by a Player. This isolates the set of possible bets and the management of the amounts currently at risk on each bet. This also is the interface between the Player and other elements of the game.
Term

Table:

 

Collaborators?

Definition
Collects the outcomes used by player to place a bet amount on a specific outcome. Used by Game to compute the amount won from the amount was bet.
Term

Player:

 

Responsibilities

Definition
Responsibilities: Places bets on outcomes updates the stakes with the amounts won and lost.
Term

Player: 

 

 

Collaborators

Definition
Collaborators: Uses Table to place bets on outcomes,  Used by game to record wins and losses
Term

Game:

 

Responsibilities

 

Definition

Runs the game: gets bets from player, spins Wheel, collects losing bets, pays winning bets. This encapsulates the basic sequence of play into a single class.

 

 

Term

Game:

 

Collaborators.

 

Definition

Collaborators:

Uses Wheel, Outcome, Player, Table. The overall statistical analysis will play a finite number of games and collect the final value of the players stake.

Supporting users have an ad free experience!