Skip to content

๐Ÿ•น | A collection of classic games implemented in C

License

Notifications You must be signed in to change notification settings

Gabriel-Lacorte/C-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C-Games

๐Ÿ•น This repository contains a collection of classic games implemented in C.

Game List

1. Snake Game ๐Ÿ

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.

asciicast

To compile the game, use the following command:

gcc snake.c -o snake -lncurses

2. Pong ๐Ÿ“

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.

asciicast

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

License

This project is licensed under the MIT license.

About

๐Ÿ•น | A collection of classic games implemented in C

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages