Skip to content

Doll293/Jeux-du-serpent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C Snake game

A simple C snake game for fun and learning!

GitHub Build GitHub License GitHub issues
Plateformes

How to try the program

  1. Clone the repository:

    git clone [email protected]:Doll293/Jeux-du-serpent.git
  2. Go to the project directory:

    cd Jeux-du-serpent
  3. Compile the program:

    gcc main.c -o snake
  4. Run the game:

    ./snake
  5. Have fun playing Snake Games!

How to install the program

No installation is necessary. Simply follow the steps above to try out the program.

How to set up a coding environment for the project

  1. Linux (Debian / Ubuntu):

    • Make sure you have GCC (GNU Compiler Collection) installed:
      sudo apt update
      sudo apt install gcc
  2. Windows:

    • Download and install MinGW, then make sure you add MinGW's bin directory to your PATH environment variable.
  3. Mac:

    • You can install GCC on a Mac using Xcode Command Line Tools. Open a terminal and run:
      xcode-select --install
  4. Use a text editor or integrated development environment (IDE) to code.

  5. Open the project in your development environment and start coding!

How to contribute to the project

If you'd like to contribute to the improvement of snake game in C, follow these steps:

  1. Make a fork of the project.

  2. Clone your fork :

    git clone https://github.com/votre-utilisateur/Jeux-du-serpent.git
  3. Create a branch for your contribution:

    git checkout -b nom-de-votre-branche
  4. Make your changes and test them.

  5. Add and commit your changes :

    git add -a
    git commit -m "Description de vos modifications"
  6. Push the changes to your fork :

    git push origin nom-de-votre-branche
  7. Create a Pull Request on the original repository.

  8. Wait for your contribution to be reviewed and merged!

Thank you for contributing to the Snake Game in C project!