The Game - Single Player Edition is a minimalistic, single-player adaptation of the popular cooperative card game "The Game," designed by Steffen Benndorf. This version is implemented in C using the SDL2 and SDL2_ttf libraries, providing a lightweight and engaging experience for fans of the original game.
- Single-Player Mode: Enjoy the strategic challenge of "The Game" in a solo format.
- Minimalistic Design: Simple and clean interface for focused gameplay.
- Randomized Deck: Each game offers a new challenge with a shuffled deck of cards.
- Intuitive Controls: Easy-to-use controls for a seamless gaming experience.
- Text Rendering: Utilizes SDL2_ttf for clear and crisp text display.
- Objective: Play all the cards from the deck onto four piles according to specific rules.
- Ascending Piles: Place cards in increasing order.
- Descending Piles: Place cards in decreasing order.
- Special Rule: Play a card exactly 10 higher or 10 lower to reset the pile.
- End of Game: The game ends when no more valid moves can be made.
- Clone the repository:
git clone https://github.com/Justus03/the-game-single-player.git
- Install SDL2 and SDL2_ttf libraries. You can find the installation instructions on the SDL2 website and the SDL2_ttf website.
- Ensure
pkg-configis installed on your system. - Navigate to the project directory:
cd the-game-single-player - Compile the project:
gcc -o thegame M_game.c game.c $(pkg-config --cflags --libs sdl2 SDL2_ttf) - Run the game:
./thegame
- C Compiler: Compatible with GCC or Clang.
- SDL2 Library: Ensure SDL2 is installed on your system.
- SDL2_ttf Library: Ensure SDL2_ttf is installed on your system.
- pkg-config: Ensure pkg-config is installed for managing library flags.
- Configure a build system (Makefile, CMake, etc.).
- Improve the user interface and graphics.
- Add sound effects and music.
- Implement additional game modes and features.
Feel free to fork the repository and submit pull requests. Contributions, bug reports, and feature requests are welcome!
-
Kevin Simpore – Lead Programmer, UI Design, Game Logic
-
Ghislain Osée Ki – Programmer, Card design
-
Elsa Ilboudo – Code review, Testing
Big thanks to the SDL and SDL2_ttf open-source communities for the tools that made this project possible.
Enjoy playing "The Game" solo and challenge yourself to achieve the perfect game!



