added the 'Die' class to the 'Game' class
This commit is contained in:
@@ -214,6 +214,15 @@ public Board getBoard() {
|
||||
return board;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method will be used to return die attribute of Game class.
|
||||
*
|
||||
* @return die as a Die object.
|
||||
*/
|
||||
public Die getDie() {
|
||||
return this.die;
|
||||
}
|
||||
|
||||
/**
|
||||
* This method returns the active color.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user