A simple C snake game for fun and learning!
-
Clone the repository:
git clone [email protected]:Doll293/Jeux-du-serpent.git
-
Go to the project directory:
cd Jeux-du-serpent
-
Compile the program:
gcc main.c -o snake
-
Run the game:
./snake
-
Have fun playing Snake Games!
No installation is necessary. Simply follow the steps above to try out the program.
-
Linux (Debian / Ubuntu):
- Make sure you have GCC (GNU Compiler Collection) installed:
sudo apt update sudo apt install gcc
- Make sure you have GCC (GNU Compiler Collection) installed:
-
Windows:
- Download and install MinGW, then make sure you add MinGW's
bin
directory to yourPATH
environment variable.
- Download and install MinGW, then make sure you add MinGW's
-
Mac:
- You can install GCC on a Mac using Xcode Command Line Tools. Open a terminal and run:
xcode-select --install
- You can install GCC on a Mac using Xcode Command Line Tools. Open a terminal and run:
-
Use a text editor or integrated development environment (IDE) to code.
-
Open the project in your development environment and start coding!
If you'd like to contribute to the improvement of snake game in C, follow these steps:
-
Make a fork of the project.
-
Clone your fork :
git clone https://github.com/votre-utilisateur/Jeux-du-serpent.git
-
Create a branch for your contribution:
git checkout -b nom-de-votre-branche
-
Make your changes and test them.
-
Add and commit your changes :
git add -a git commit -m "Description de vos modifications"
-
Push the changes to your fork :
git push origin nom-de-votre-branche
-
Create a Pull Request on the original repository.
-
Wait for your contribution to be reviewed and merged!
Thank you for contributing to the Snake Game in C project!