Skip to content

skipdudes/war-card-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

War Card Game

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 C99 build CMake platform Windows Linux macOS release 1.0.0

🛠 Requirements

  • 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.

⚙️ Building

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 build

▶ Running

🪟 Windows (MSVC)

After building, run the executable from the configuration directory:

build\Debug\war.exe

(or build\Release\war.exe if you built the Release configuration)

🪟 Windows (MinGW)

build\war.exe

🐧 Linux / 🍎 macOS (Makefiles or Ninja)

./build/war

📜 License

This project is licensed under the MIT license.

👤 Author

Copyright © 2019 Marcin Chętnik

Packages

 
 
 

Contributors