Skip to content

Instantly share code, notes, and snippets.

View oksmelnik's full-sized avatar

Oksana Melnik oksmelnik

  • Amsterdam
View GitHub Profile
@oksmelnik
oksmelnik / tictac.js
Last active June 9, 2019 13:38
Terminal based TicTacToe game built with Node.js
const playingField = [' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ']
printInstruction()
nextMove('X')
function printInstruction() {
process.stdout.write('Cell\'s numbers:\n')
printRow(1, 2, 3)
printLine()
printRow(4, 5, 6)