@christianjuth/tictactoe-engine
v0.0.3-alpha.14
Published
> TODO: description
Downloads
8
Readme
@christianjuth/tictactoe-engine
Tic-tac-toe engine
Usage
import {
getBestMoveMiniMax,
checkWinner,
printBoard
} from "@christianjuth/tictactoe-engine";
let board = [
'','','',
'','','',
'','',''
]
while (checkWinner(board) === undefined) {
board = getBestMoveMiniMax(board)
printBoard(board)
}