A multi-processing application that simulates the behavior of 2 teams of players playing beach ball at the Gaza sea shore using signals and pipes facilities.
Demo.mp4
This project simulates a beach ball game between two teams, Team A and Team B, at the Gaza sea shore. Each team consists of 5 players and a team lead. The simulation involves passing balls among team members, with the goal of keeping the game active for a user-defined amount of time. The team with the most balls at the end of each round loses.
- Two teams (Team A and Team B) with 5 players each and a team lead.
- Randomized ball passing among team members based on energy levels.
- Handling of dropped balls and re-collection time.
- Parent application manages the game and introduces new balls.
- User-defined game duration and number of rounds.
- Determination of the losing team based on the number of balls they possess.
- Clone the repository:
git clone https://github.com/OsaidHamza7/RealtimeProject-1-Beach-ball-game-simulation.git
- Navigate to the project directory:
cd RealtimeProject-1-Beach-ball-game-simulation
- Build the project:
make all
- Run the simulation:
make run
- Set the user-defined game duration and number of rounds as prompted.
- The simulation will run for the specified time, displaying the ball passing and team activities.
- At the end of each round, the results will be displayed, and the game will either continue or end based on the specified conditions.
- Osaid Hamza - Team Leader
- Razan Abdelrahman
- Maisam Alaa
- Ansam Rihan