An open API service indexing awesome lists of open source software.

https://github.com/var7600/connect4

Gaming Connect 4 Classic the Win
https://github.com/var7600/connect4

connect4 connect4-game connect4-game-in-c

Last synced: 7 months ago
JSON representation

Gaming Connect 4 Classic the Win

Awesome Lists containing this project

README

          

# Connect 4 GAME

*date* : 03/2022

*version* : 1.0

the Connect 4 game, which is played with a vertical grid of 6x7 seven
vertical grid of seven columns by six rows. Each player has twenty-one tokens of one color
color (most often red and yellow, translated in our example by the characters "O" and "X" places them in the grid in turn.
To win the game, a player must line up four chips vertically, horizontally or obliquely. It is the same principle as Tic-Tac-Toe with one difference: the grid is
vertical, which means that the chips fall to the bottom of the column chosen by the player. For
more details, I refer you to the dedicated article on Wikipedia .
[Wikipedia](https://en.wikipedia.org/wiki/Connect_Four)

### Objective
this program was develop using the `C programming language`, the purpose was to have a program that you can run on your console to play
connect 4 game.

### Prerequisite
-`gcc`
-`make`
-`git`

you need to have ` gcc ` install and the ` make ` and `git` utility installed on your system if you are on - `Windows` you can download gcc on

[Mingw](https://sourceforge.net/projects/gcc-win64/)

or watch tutorials

https://www.youtube.com/watch?v=maKL0d1Qi6M

https://www.youtube.com/watch?v=taCJhnBXG_w

on `Linux` ` gcc ` and ` make ` are already available, if not you can install them buy usiing this command
in your terminal by using your packet manager : -`apt`-`dnf`......

``` bash
sudo apt install build-essential
```
and install git by typing

```bash
sudo apt install git
```

### Download
if the ` git ` utility is already installed on your system you can download the source code by running this command on your terminal

```bash
git clone https://github.com/DD7600/Connect4.git
```
Or you can Dowload the Zip Archive

### Compilation
after the respitory dowloaded you cant type this command

-On `Linux`

```bash
cd ./Connect4
./install.sh
```
-On `Windows`

```bash
cd ./Connect4
make && make clean
```

### Execution
to run the game type

```bash
./connect4
```
if everything is okay by now you will see the game start enjoy :)
![Welcome](images/welcome.png)
![Grid](images/grid.png)
![End](images/end.png)

#### Feedback
if you have any problems , suggestions , remarks , contributions you can contact me on github,
any feedback is Welcome!