Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anthonygore/codehike-tic-tac-toe

Codehike lessons for a JS implementation of the classic Tic Tac Toe game
https://github.com/anthonygore/codehike-tic-tac-toe

Last synced: about 1 month ago
JSON representation

Codehike lessons for a JS implementation of the classic Tic Tac Toe game

Awesome Lists containing this project

README

        

Tic Tac Toe in Javascript
=========================

Codehike lessons for a JS implementation of the classic Tic Tac Toe game, with directions given
by [The Odin Project](http://www.theodinproject.com/javascript-and-jquery/tic-tac-toe)

We start with a nine square board already created.

Overview of steps:

1. Click any tile to add an "X".
2. Mouse over any tile to display an "X" (removed on click).
3. Alternate between "X" and an "O"
4. Display "current player" in the header
5. Prevent changing a tile once clicked once
6. Add a reset button to clear the tiles
7. Add logic to decide if a player has won
8. If the game is won, display message and freeze board