getMoves {rt3} | R Documentation |
Get the list of valid move from the game state.
getMoves(gameState)
gameState |
The gameState for which moves must be calculated. |
validMoves An array (["integer"]) of valid moves based on the provided game state.
gameState <- startGame() validMoves <- getMoves(gameState)