@ApplicationScoped public class Game extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_NUM_GUESSES |
| Constructor and Description |
|---|
Game() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check() |
int |
getBiggest() |
int |
getGuess() |
int |
getNumber() |
int |
getRemainingGuesses() |
int |
getSmallest() |
boolean |
isGameLost() |
boolean |
isGameWon() |
boolean |
isValidNumberRange() |
void |
reset() |
void |
setGuess(int guess) |
public static final int MAX_NUM_GUESSES
public int getNumber()
public int getGuess()
public void setGuess(int guess)
public int getSmallest()
public int getBiggest()
public int getRemainingGuesses()
public boolean isValidNumberRange()
public boolean isGameWon()
public boolean isGameLost()
public boolean check()
@PostConstruct public void reset()
Copyright © 2008-2014. All Rights Reserved.