Add currentPlayer property to Game class

This commit is contained in:
Manuel Thalmann 2022-12-15 10:04:00 +01:00
parent 8020d30d6b
commit 7b765db827
No known key found for this signature in database
GPG key ID: 5FD9AD3CCDDBD27B

View file

@ -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.
*