Skip to content

oscarnava/JS-TicTacToe

Repository files navigation

🎮 The game of Tic-Tac-Toe

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.


👤 Contributors

🔗 Assignment link


🔧 Installing

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.

🔨 Building the App

Enter on the command line:

parcel build index.html --public-url ./

Application will be built in the dist directory.


⌛ Todo's

  • Improve the AI to be unbeatable by using MinMax algorithm (currently it uses a simple Montecarlo strategy)

📦 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

🗝 License

Creative Commons Attribution 4.0 International (CC BY 4.0).

📡 Contact

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!

About

TicTacToe game, with simple AI, built with JavaScript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published