A simple console-based implementation of the classic card game War, written in C. The project focuses on clean game logic, correct card handling, and memory-safe code.
- Language: C (C99)
- Build system: CMake ≥ 3.10
- Compiler: GCC, Clang, or MSVC
Note for Windows: The project requires a toolchain using the Universal C Runtime (UCRT) (e.g. MSVC or MinGW-w64 UCRT via MSYS2). Older MinGW toolchains based on MSVCRT are not supported.
Clone the repository and build the project using CMake:
git clone https://github.com/skipdudes/war-card-game.git
cd war-card-game
cmake -S . -B build
cmake --build buildAfter building, run the executable from the configuration directory:
build\Debug\war.exe(or build\Release\war.exe if you built the Release configuration)
build\war.exe./build/warThis project is licensed under the MIT license.
Copyright © 2019 Marcin Chętnik