📛 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)
npm install name-battle
const nameBattle = require('name-battle')
nameBattle({ attacker: 'Vikram Ravindran', target: 'Michael Rose' })
nameBattle(combatants)
Conducts a name battle between the specified combatants
combatants
(Object): An object describing the participants in the Name Battlecombatants.attacker
(String): The name of the attackercombatants.target
(String): The name of the target
(Number): The remaining Life Force of the target after they have been engaged in a Name Battle by the attacker
Thanks goes to these wonderful people (emoji key):
Michael Rose 🚇 | Greenkeeper[bot] 🚇 | allcontributors[bot] 📖 | vikram-ravindran 💻 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!