ES - EN

DooM Battle Simulator

The kata was designed for the Devscola in the course of 2017.

This kata is designed to practice the inheritance and testing of random situations.

Doom is a 1993 science fiction horror-themed first-person shooter (FPS) video game by id Software. It is considered one of the most significant and influential titles in video game history, for having helped to pioneer the now-ubiquitous first-person shooter.

Create a battle simulator to help the DooM Marine to know in which situations he could survive and in which he could not survive.

The Game

The player starts by attacking a random demon, then a random demon attacks the player.
When the player attacks use a random weapon. Only use your fists if you run out of ammunition from the rest of the weapons.
When the player kills a demon recovers armor (1% of the life of the demon) and life (2% of the life of the demon).
When the player receives damage, he loses armor and loses life when he hasn’t armor.
The simulation ends when the player dies (has zero or less life) or all the demons die.

Player

- The player has a maximum of 100 life points.
- The player has a maximum of 50 armor points.
- The player always starts with the fists.
- The player can start with a maximum of five weapons.
- The player can not have two weapons with the same name.

The Level

At the start of the level:
- The player starts full life.
- The player starts full armor.
- The player gets 3 weapons.
- The level has six random demons.
- The demons start full life.

Weapons

Ammo
Capacity
Ammo/Shot
Damage
Fists
None
Infinite
None
15
Chainsaw
None
Infinite
None
30
Pistol
Bullets
200
1
15
Shotgun
Shells
30
1
50
Chaingun
Bullets
200
10
150
Rocket launcher
Rockets
20
1
200
Plasma gun
Plasma
200
10
200
BFG 9000
Plasma
200
50
1000

Demons

Name
Life
Damage
Zombieman
50
4
Shotgun Guy
60
6
Imp
70
8
Demon
80
10
Spectre
80
10
Lost Soul
45
6
Cacodemon
215
10
Baron of Hell
230
12
Cyberdemon
500
16
Spider Mastermind
600
18

Regla extra

Each time the player kills a demon, the player moves and can get any of the objects on the right (remember that weapons have a maximum capacity):
- Nothing
- 10 Armor points
- 20 life points
- 20 bullets
- 5 shells
- 1 Misil
- 20 plasma
Remember that some weapons share the same type of ammunition.