Class Player
java.lang.Object
Player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
checkFigureInBase
(ArrayList<Figure> figures) boolean
checkGameWin
(ArrayList<Figure> figures) int
int
rollDice()
-
Constructor Details
-
Player
-
-
Method Details
-
rollDice
public int rollDice()- Returns:
- value of the dice
-
checkGameWin
- Parameters:
figures
- figures of the current Player- Returns:
- true if Player has won
-
checkFigureInBase
- Parameters:
figures
- figures of the current Player- Returns:
- true if there is at least one figure in the base (of gameboard)
-
choose
- Parameters:
usableFigures
- list of usable Figures to choose from- Returns:
- int figid of the figure chosen
-