|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.co.triplesix.craps.Game
public class Game
The main game logic for Craps
| Constructor Summary | |
|---|---|
Game()
Set the initial state of the game to "not running". |
|
| Method Summary | |
|---|---|
boolean |
isRunning()
Check the game's current state |
void |
processGame()
The main game loop for Craps. |
int |
rollDice(int numberOfDice,
int numberOfSides)
Generate a random number emulating the roll of a dice |
void |
showInstructions()
Print the game instructions to the screen. |
void |
startGame()
Sets the game's state to running. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Game()
| Method Detail |
|---|
public int rollDice(int numberOfDice,
int numberOfSides)
numberOfDice - The number of "dice" to rollnumberOfSides - The number of sides on each "dice"
public void showInstructions()
public boolean isRunning()
public void startGame()
public void processGame()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||