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

Description Usage Arguments Value Examples

View source: R/main.R

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 29, 2017, 8 p.m.