https://github.com/null-none/tic-tac-toe
A tic tac toe game built with vanilla javascript using minimax algorithm.
https://github.com/null-none/tic-tac-toe
game javascript simple smart tic-tac-toe
Last synced: about 1 year ago
JSON representation
A tic tac toe game built with vanilla javascript using minimax algorithm.
- Host: GitHub
- URL: https://github.com/null-none/tic-tac-toe
- Owner: null-none
- License: mit
- Created: 2024-11-04T13:00:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-04T13:08:56.000Z (over 1 year ago)
- Last Synced: 2025-01-26T09:28:16.872Z (over 1 year ago)
- Topics: game, javascript, simple, smart, tic-tac-toe
- Language: JavaScript
- Homepage: https://tic-tac-toe-smart-ai.netlify.app/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tic Tac Toe
A simple tic tac toe game build in vanilla javascript, along with some nice HTML & CSS.
There are 2 implementations of this tic tac toe game one is the simple one in which both the user & the bot can win. The other is an implementation where the bot always wins or it ties. But never looses.
### Javascript Implementation
To use the `simple.js` implementation simply go in the `index.html` file and at the very bottom in the `script tag` uncomment the line with `smart.js`. If you want to use the the one with the minimax algorithm do the opposite.
```diff
-
+
```