Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/anthonygore/codehike-tic-tac-toe
- Owner: anthonygore
- Created: 2016-01-07T21:56:52.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-13T08:29:14.000Z (almost 9 years ago)
- Last Synced: 2024-10-28T00:45:38.793Z (2 months ago)
- Language: CSS
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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