Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 516 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 516 Bytes

nodejs-cli-connect-four

Basic connect four game that can be played in your terminal.

Controls:
  Move cursor: <- & ->
  Insert piece: o

       y
[ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][x][ ][ ][ ]
[x][ ][ ][y][ ][ ][ ]
[x][y][x][y][ ][ ][ ]

Player turn: y

Usage

Clone repo:

git clone https://github.com/viglucci/nodejs-cli-connect-four.git

Enter directory:

cd nodejs-cli-connect-four

Run program:

node ./program.js