getMoves {rt3} | R Documentation |
Get the list of valid move from the game state.
Description
Get the list of valid move from the game state.
Usage
getMoves(gameState)
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
gameState <- startGame()
validMoves <- getMoves(gameState)
[Package rt3 version 0.1.2 Index]