I wrote this version of the minimax algorithm using typeScript, so that the code is much easier to read and understand for anyone who is interested or concerned about it.
If you want to try this algorithm and run it, then simply:
- Install all dependencies using
yarn install
. - run
yarn start
on your terminal to build your files every time that the source code changes. - Change the game board in the
board.ts
file. - Finally, use
node
ornodemon
to run thebundle.js
file in the dist directory and see the results.