powered by
A player is a function that takes a game state as input and returns a valid move index.
randomMovePlayer(gameState)
gameState <- startGame() move <- randomMovePlayer(gameState)
Run the code above in your browser using DataLab