Learn R Programming

rt3 (version 0.1.2)

makeMove: Apply the move to the current game state an produce a new game state.

Description

Apply the move to the current game state an produce a new game state.

Usage

makeMove(gameState, move)

Arguments

gameState
The gameState to apply the move to.
move
The move to be applied to the game state.

Value

gameState The game state after applying the move to the game state.

Examples

Run this code
gameState <- startGame()
gameState <- makeMove(gameState,1)

Run the code above in your browser using DataLab