An online Tic-Tac-Toe game with a built-in AI. If you have been living under a rock 😁 and you don't know this game and its rules, you can check them out at this link.
To start a game, type the name of the players in the corresponding editor (the corresponding avatar will change depending on your name), select whether you want to play against a human 👦↔👧, the computer 👧↔🤖, or you can even select both players to be AI's 🤖↔🤖.
Do you want to try it now? You can play the game at this link: 🕹 Tic-Tac-Toe.
After cloning the repository to your local development machine, to build the application you will have to install dependencies and run Parcel:
npm install
npx parcel index.html
And open the location http://localhost:1234/ with your browser.
Enter on the command line:
parcel build index.html --public-url ./
Application will be built in the dist directory.
- Improve the AI to be unbeatable by using MinMax algorithm (currently it uses a simple Montecarlo strategy)
Contributions, issues and feature requests are welcome!
Feel free to check the issues page.
Creative Commons Attribution 4.0 International (CC BY 4.0).
Please don't hesitate to contact me at 📧 contact@oscarnava.me if you have any questions, comments, etc. I would love to know what's on your mind!