getMoves: Get the list of valid move from the game state.

Description Usage Arguments Value Examples

Description

Get the list of valid move from the game state.

Usage

1

Arguments

gameState

The gameState for which moves must be calculated.

Value

validMoves An array (["integer"]) of valid moves based on the provided game state.

Examples

1
2
gameState <- startGame()
validMoves <- getMoves(gameState)

rt3 documentation built on May 2, 2019, 6:38 a.m.