In order to install 'Connect4', clone this repository wherever you like.
git clone git@github.com:hosuzuki/connect4.git
Then, go into the repository which you just cloned.
cd connect4
Please use make
to compile neccesary files.
make
You are all set!!
To play the game, type
./connect4
Player 1 starts first.
Player 1 can type any number between 1 to 6 to place your piece which is 'o' on the game board.
For instance, if the Player 1 type 1
and hit enter
key, the board will be updated such as below.
Now, Player 2's turn.
The game ends when one of them lines up four pieces in a row or both doesn't line up four pieces until the end which leads to a tie game.