public class SixChances
extends java.lang.Object
Constructor and Description |
---|
SixChances()
Constructor for objects of class SixChances
|
Modifier and Type | Method and Description |
---|---|
void |
guess(int g)
Evaluates the guess given as the parameter and prints
appropriate messages.
|
void |
newGame()
Starts a new game of "six chances" and prints
instruction on how to play.
|
public void guess(int g)
g
- The guess of the player.public void newGame()