Learn R Programming

rt3 (version 0.1.2)

getMoves: 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

Run this code
gameState <- startGame()
validMoves <- getMoves(gameState)

Run the code above in your browser using DataLab