Skip to content

A turn-based strategy game developed in C, utilizing matrix operations and DFS pathfinding algorithm.

Notifications You must be signed in to change notification settings

ShotsMan2/C-Matrix-Strategy-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

C Matrix Strategy Game ๐ŸŽฎ

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.

๐Ÿš€ Features

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

๐Ÿ› ๏ธ How to Compile & Run

You can compile the source code using any standard C compiler (like GCC).

  1. Clone the repository:
    git clone [https://github.com/ShotsMan2/C-Matrix-Strategy-Game.git](https://github.com/ShotsMan2/C-Matrix-Strategy-Game.git)
  2. Compile the code:
    gcc main.c -o game
  3. Run the game:
    ./game  # On Linux/Mac
    game.exe # On Windows

๐Ÿ“š Algorithms Used

  • 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

About

A turn-based strategy game developed in C, utilizing matrix operations and DFS pathfinding algorithm.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages