Skip to content

Instantly share code, notes, and snippets.

View bbchui's full-sized avatar

Brandon Chui bbchui

  • App Academy
  • San Francisco, CA
View GitHub Profile
@bbchui
bbchui / tic-tac-toe.js
Created February 5, 2018 10:51
tic-tac-toe eminem version
const readline = require('readline');
const reader = readline.createInterface({
input: process.stdin,
output: process.stdout
});
class LoseYourself {
constructor(oneShot = [[3,2,1],[],[]]) {
this.oneShot = oneShot;