This is a Hunger Games Simulation! This project simulates a complex battle royale-style environment where participants compete for survival. The simulation, implemented in C#, models a wide array of factors including health, nutrition, hydration, combat abilities, and personal attributes to determine the ultimate survivor. This README provides an overview of all the variables and factors that impact the outcome of the simulation.
- Overview
- Simulation Factors
- Combat System
- Nutrition and Hydration
- How to Run the Simulation
- Contributing
The Hunger Games Simulation is a C# console program that simulates a battle royale scenario. Participants have unique characteristics and skills, and their survival depends on their health, combat skills, and ability to find food and water. The simulation evolves over time as participants fight, rest, and struggle to survive.
The following factors contribute to the outcome of the simulation, influencing who survives and who doesn't:
-
Physical Attributes
Height
: Influences reach and agility in combat.Mass
: Affects BMI and potential strength.Reach
: Determines the range in combat scenarios.Exercise
: Impacts stamina and fitness levels.BMI
: Balance between mass and height, with implications for health and stamina.
-
Health Stats
Hydration
: Critical for survival; low hydration leads to death.Nutrition
: Necessary for maintaining energy and health.Sleep
: Affects energy recovery.Energy
: Impacts stamina and combat readiness.Health
: Overall health status; reaching zero results in death.
-
Combat Stats
Strength
: Determines damage output.Power
: Influences the effectiveness of attacks.Speed
: Affects attack and movement speed.Agility
: Determines dodge chances and flexibility in combat.Stamina
: Determines endurance in combat and running.
-
Personal Attributes
Willpower
: Impacts resistance to negative conditions and affects health decrease rates.Age
: May play a role in overall fitness and experience.
The combat system uses the following elements:
- Attacks: Randomly determined in combat rounds, with damage output influenced by strength, power, and stamina.
- Defense: Based on agility and stamina; higher agility means better dodging.
- Rounds: Combat occurs over a series of rounds, with each round allowing attacks and defense actions.
- Fatigue: Stamina decreases with each action, affecting attack strength and defense.
Participants can find food and water at random intervals:
- Food: Helps increase nutrition and energy levels. Finding food has a random chance, with lower nutrition increasing the probability. Lack of food can lead to death by starvation.
- Water: Increases hydration. Similar to food, finding water has a random chance, with lower hydration increasing the probability. Lack of water can lead to death by dehydration.
- Time: As time progresses, health and energy naturally decrease, requiring participants to find food and water to survive.
To run the simulation, follow these steps:
- Compile the C# code Program.cs.
- Run the compiled program.
- Choose the simulation speed and the number of participants.
- Observe the simulation as it progresses, with participants engaging in combat, finding food and water, and ultimately leading to a single winner.
The simulation offers three speeds:
- Instant: Minimal delay between events.
- Fast: Moderate delay.
- Medium: Longer delay.
Choose the number of participants for the simulation. A larger population leads to a more complex simulation with more interactions and fights.
Contributions are welcome! If you'd like to suggest changes, please open an issue or submit a pull request. If you encounter any bugs, please report them on GitHub.