| title |
|---|
Hero vs Monster in Dungeon |
this the simulation from the game :)
Hero need skill before game. in this release, game need input from user to decide what skill hero use on the game. you can type regen or ulti
you can use process argv on the skeleton code
$ node game.js regen
or
$ node game.js ulti
Note:
- skill only
ultiorregenother than that console error on cli
after that make algorithm that require some rule in the game.
Rule:
- there is 10 stage.
- there is preparation stage and end stage.
- Hero have max 100hp.
- Every stage have a monster. that can be killed by one hit by hero but hero got damaged and hp got -7
- There is 30% possibility in every stage got big monster that must 2 hit to kill the monster. in every hit hero got hp -7
- Hero just have 10% chance to use the skill in every stage.
- if Hero use regen skill the get +10hp(max 100hp) and ulti skill can kill i hit kill every kind of monster buy still got damaged hp -7
- if Hero still have hp>0 in end stage then player win
- if Hero still have hp === 0 in end stage then player lose.
- the minimum hp must 0 not negatif
- Show stats like hp and skill on top in cli in every stage
- if there is fight, there is a log below arena
Use libaray ASCII art ini if you want experiment with color, font, etc to you console.
