-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Tommaso |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,44 @@ | ||
# Four_In_Row | ||
Ultra basic C-implementation of the "4 in a row" game | ||
|
||
This is a **simple implementation of the Four In a Row game, developed during high school using basic concepts of C**. | ||
|
||
![Play board screenshot](Img/Screenshot%202023-03-26%20131115.png) | ||
|
||
## How to play | ||
|
||
The game is a two player game, where each player has to connect four pieces of the same color in a row, column or diagonal. | ||
|
||
At first, you will be prompted to insert the players' names, and each player will be assigned a symbol (X or O). | ||
|
||
For each turn the play board will be displayed, and the player will be prompted to insert the column where he wants to place his piece. | ||
|
||
The game will end when one of the players connects four pieces in a row, column or diagonal, or when the board is full. | ||
|
||
## How to compile | ||
|
||
To compile the game, you need to have the GCC compiler installed on your machine. | ||
|
||
To compile the game, simply run the following command: | ||
|
||
```bash | ||
gcc -o Main Main.c | ||
``` | ||
|
||
## How to run | ||
|
||
To run the game, simply run the following command: | ||
|
||
```bash | ||
./Main | ||
``` | ||
|
||
## Improvements / pull requests | ||
|
||
Since I haven't touched this code in a long time (from about 2017), **I would love to see improvements**, so feel free to fork this repository and make pull requests. | ||
|
||
Have a nice coding day, | ||
|
||
Tommaso :panda_face: | ||
|
||
|
||
|