Skip to content

In this project, two players can play the Connect Four(Four-in-a-row) game. Player 1 uses 'o' and Player 2 uses 'x' as their pieces. The one who lines up his or her 4 pieces wins.

License

Notifications You must be signed in to change notification settings

hosuzuki/connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect4

Project Assignment - 42 Tokyo (2021 WINTER)

A simple Connect Four(Four-in-a-row) game.
The one who lines up his or her 4 pieces wins.

-----------------------------------------------------

⭐ Getting Started

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!!

-----------------------------------------------------

⚡ How To Play

To play the game, type

./connect4

aaa2021-12-20 13 41 00

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.

aab2021-12-20 13 40 41

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.

About

In this project, two players can play the Connect Four(Four-in-a-row) game. Player 1 uses 'o' and Player 2 uses 'x' as their pieces. The one who lines up his or her 4 pieces wins.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published