name-battle
📛 Simulate battles in a parallel universe
The original concept for the sacred Name Battle was proposed by @vikram-ravindran during a magnificent state of pure lucidity during which he was capable of anything he so desired. He desired to unveil the Name Battle to the world, and so it was:
The purpose of this function is to simulate a battle in a parallel universe in which, when a person attacks another person (the target), they do so by absorbing letters in the target's name that match the attacker's name, and the percentage of letters left over gives the current life-force level of the target as a percentage (100% is full-health)
Installation
npm install name-battle
Usage
const nameBattle =
API
Default Export
nameBattle(combatants)
Conducts a name battle between the specified combatants
Arguments
combatants
(Object): An object describing the participants in the Name Battle
combatants.attacker
(String): The name of the attackercombatants.target
(String): The name of the target
Returns
(Number): The remaining Life Force of the target after they have been engaged in a Name Battle by the attacker
Contributors
Thanks goes to these wonderful people (emoji key):
Michael Rose 🚇 ⚠️ 💻 | Greenkeeper[bot] 🚇 | allcontributors[bot] 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!