Last active
January 2, 2021 17:57
-
-
Save priort/ad68e8d141b67803af23c7dbba0f9289 to your computer and use it in GitHub Desktop.
Tic-Tak-Toe-with-Action-Replay-Snippet-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tests = () => { | |
let testsPassed; | |
let gameboardWithNoCompletedRowsOrColumnsButAllCellsCompleted = [ | |
['X','O', 'X'], | |
['O','O', 'X'], | |
['O','X', 'O'] | |
] | |
testsPassed = !winChecker.thereIsAWinner(gameboardWithNoCompletedRowsOrColumnsButAllCellsCompleted); | |
console.log('Test thereIsAWinner gameboardWithNoCompletedRowsOrColumnsButAllCellsCompleted ' + testsPassed); | |
testsPassed = winChecker.gameBoardIsFull(gameboardWithNoCompletedRowsOrColumnsButAllCellsCompleted); | |
console.log('Test gameboardIsFull gameboardWithNoCompletedRowsOrColumnsButAllCellsCompleted ' + testsPassed); | |
let gameboardWithCompletedRow0 = [ | |
['X','X', 'X'], | |
['O','O', 'X'], | |
['O','X', 'O'] | |
] | |
.... | |
.... | |
.... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment