This project is mainly for implementing data structures and algorithms. The castle enemy simulation consists of four towers which belongs to a castle. Every tower is responsible for a certain region were enemies attack the castle and towers have to defend it.
There are four types of enemies:
1- Fighter enemy in GREEN: This type of enemies throws fire on the tower causing damage to the tower itself.
2- Freezer enemy in BLUE: This type of enemies throws ice on the tower causing ice accumulation on the tower so the tower gets freezed for some time and is not able to fire the enemies for sometime until this ice accumulation becomes less than a certain threshold.
3- Healer enemy in ORANGE RED: This type of enemies heals the enemies surrounding it by increasing their health by 30% while losing only 3% of its own health. This type cannot exceed 20% of the total enemy count.
4- Spy enemy in YELLOW: This type of enemies attacks other enemies surrounding it while the tower cannot distinguish between between it and other types of enemies so the tower also attack it as a regular enemy.
Six test cases were generated in .txt files to see whether the game is WIN, LOSR or DRAW.
-
Notifications
You must be signed in to change notification settings - Fork 0
youhanamikhaiel/Castle-Enemy-Simulation
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published