Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const rl = readline.createInterface({
output: process.stdout
});

// creates and empty "board" for the user to see where marks can be placed.
// creates an empty "board" for the user to see where marks can be placed
// using let because the variable is expected to change with more 'X's and 'O's to add
let board = [
[' ', ' ', ' '],
Expand All @@ -22,7 +22,7 @@ let board = [
// using let because the variable is expected to change from 'X' to 'O' and back
let playerTurn = 'X';

// is a function that print the current status of the board using the variable - board
// is a function that prints the current status of the board using the variable - board
const printBoard = () => {
console.log(' 0 1 2');
console.log('0 ' + board[0].join(' | '));
Expand All @@ -45,7 +45,7 @@ const diagonalWin = () => {
}

const checkForWin = () => {
// Your code here call each of the check for types of wins
// Your code here to call each of the check for types of wins
}

const ticTacToe = (row, column) => {
Expand All @@ -66,7 +66,7 @@ const getPrompt = () => {


// Unit Tests
// You use them run the command: npm test main.js
// to use them run the command: npm test main.js
// to close them ctrl + C
if (typeof describe === 'function') {

Expand Down