Instantly share code, notes, and snippets.

🎯
Focusing

Pratik pringshia

View GitHub Profile
@pringshia
pringshia / tictactoe.js
Last active Jul 22, 2018
Tic Tac Toe Game
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"