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

https://github.com/roppa/tictactoe

Tic tac toe game
https://github.com/roppa/tictactoe

Last synced: about 1 year ago
JSON representation

Tic tac toe game

Awesome Lists containing this project

README

          

#Tic-tac-toe

Ah, remember war games. This was a lunch time challenge at work. Lots of ways to solve it actually. Just uses console. We assume there is only two users "x" and "o". The matrix runs from 0 - 8, representing three rows going left to right.

```
tictactoe.choose(0);
```

To reset, just:

```
tictactoe.newGame();
```