IPC Battle Arena is a multiplayer strategy game where players, grouped into teams, battle to be the last team standing on a 2D board. The game is a demonstration of System V IPC mechanisms - shared memory, message queues, and semaphores.
Each player is a separate process, and all processes interact through shared memory and message queues, ensuring synchronized access using semaphores.
- A* algorithm for finding the shorthest path
- Intuitive UI
- Ability to place walls
make re
./ipc 1
./start.sh
-
Shared Memory (SHM) Stores the game board — a grid with player positions and team identifiers.
-
Semaphores Prevent concurrent access to shared memory, ensuring atomic updates and reads.
-
Message Queues (MSGQ) Used for communication between players (coordinated attacks).
ipcs
- list shared memory, semaphores and queuesipcrm -m id
- delete shared memory