issues
search
TheRandomCrew
/
TicTacToe-JS
A Tic Tac Toe game you can play in your browser!
https://raw.githack.com/Israel-Laguan/TicTacToe-JS/24623a2bc3f0764698f32103f8b48074abf91278/index.html
Apache License 2.0
1
stars
3
forks
source link
Implement Game Logic
#3
Closed
ghost
closed
4 years ago
ghost
commented
4 years ago
[x] Store the gameboard as an array inside of a Gameboard object.
[x] Store players in objects
[x] Control the flow of the game in an object
[x] Write a JavaScript function that will render the contents of the gameboard array to the webpage.
[x] Build the functions that allow players to add marks to a specific spot on the board (DOM).
[x] Implement the logic that keeps players from playing in spots that are already taken.
[x] Build the logic that checks for when the game is over (should check for 3-in-a-row and a tie.).
[x] Clean up the interface to allow players to put in their names.
[x] Include a button to start/restart the game
[x] Add a display element that congratulates the winning player!