Instantly share code, notes, and snippets.

View tictactoe.js
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
const initialGameState = {
board: [[0, 0, 0], [0, 0, 0], [0, 0, 0]],
currentPlayer: "X"