๐น This repository contains a collection of classic games implemented in C.
The Snake Game is a game where the player controls a snake that grows by eating food that appears in. The goal is to eat as much food as possible.
To compile the game, use the following command:
gcc snake.c -o snake -lncurses
Pong is a game where two players control rackets with the aim of hitting a ball. If a player fails to hit the ball, the opponent earns a point. The goal is to score as many points as possible.
To compile the game, use the following command:
gcc pong.c -o pong -lncurses
For most games, you may need to install the 'ncurses' library. Here are the commands to install 'ncurses' on different Linux distributions:
Debian/Ubuntu:
sudo apt-get install libncurses5-dev libncursesw5-dev
Fedora/CentOS:
sudo dnf install ncurses-devel
Arch Linux:
sudo pacman -s ncurses
This project is licensed under the MIT license.