Add currentPlayer
property to Game
class
This commit is contained in:
parent
8020d30d6b
commit
7b765db827
|
@ -79,6 +79,14 @@ export class Game
|
|||
return this.state.board;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the current player.
|
||||
*/
|
||||
get currentPlayer()
|
||||
{
|
||||
return this.state.currentPlayer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the id of the player that is winning.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue