Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Pratik pringshia

Block or report user

Report or block pringshia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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"
You can’t perform that action at this time.