A turn-based strategy game developed in C programming language. This project demonstrates the use of Matrix Operations for game map logic and Depth-First Search (DFS) algorithm for pathfinding mechanisms.
- Matrix-Based Map System: The game world is represented and manipulated using 2D arrays (matrices).
- Pathfinding Logic: Implements DFS (Depth-First Search) to calculate moves and reachability.
- Turn-Based Mechanics: Strategic gameplay where every move counts.
- Pure C Implementation: No external heavy game engines, built with standard C libraries.
You can compile the source code using any standard C compiler (like GCC).
- Clone the repository:
git clone [https://github.com/ShotsMan2/C-Matrix-Strategy-Game.git](https://github.com/ShotsMan2/C-Matrix-Strategy-Game.git)
- Compile the code:
gcc main.c -o game
- Run the game:
./game # On Linux/Mac game.exe # On Windows
- DFS (Depth-First Search): Used for navigating through the game matrix and finding optimal paths.
- Dynamic Memory Allocation: Efficient memory management for game structures.
Developed by ShotsMan2