Skip to content

Instantly share code, notes, and snippets.

Avatar

Oksana Melnik oksmelnik

  • Amsterdam
View GitHub Profile
@oksmelnik
oksmelnik / tictac.js
Last active Jun 9, 2019
Terminal based TicTacToe game built with Node.js
View tictac.js
const playingField = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
printInstruction()
nextMove('X')
function printInstruction() {
process.stdout.write('Cell\'s numbers:\n')
printRow(1, 2, 3)
printLine()
printRow(4, 5, 6)
You can’t perform that action at this time.