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
Testing with JEST: Unit Testing
#7
Closed
ghost
closed
4 years ago
ghost
commented
4 years ago
Required unit tests are described next:
[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
[ ] Write a JavaScript function that will render the contents of the gameboard array to the webpage.
[ ] 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.).
[ ] Clean up the interface to allow players to put in their names.
[ ] Include a button to start/restart the game
[ ] Add a display element that congratulates the winning player!
Required unit tests are described next: