An open API service indexing awesome lists of open source software.

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.

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
-
+
```