A Pen by Jasmine Kim on CodePen.
This file contains hidden or 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
| import * as readline from 'node:readline'; | |
| import { stdin as input, stdout as output } from 'node:process'; | |
| const rl = readline.createInterface({ input, output }); | |
| // initialize game with empty board | |
| let board = [ | |
| [null, null, null], | |
| [null, null, null], | |
| [null, null, null] |
A Pen by Jasmine Kim on CodePen.