Tic-tac-toe game running with  javascript, node, and readline library