Constructor
new GameState(args, {Object[]))
Create a game state.
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
args |
Object | The properties of the game state.
Properties
|
|||||||||
{Object[]) |
args.hands - The hands of each player. |
- Source:
Members
asJson
The game state serialized as simple objects.
- Source:
currentPlayerNumber :number
Type:
- number
- Source:
hands :Array.<Hand>
Type:
- Array.<Hand>
- Source:
selectedSquare
The square that's selected.
- Source:
squares :SquareSet
Type:
- Source: