- Begin by forking and cloning this repository
- Look around the project and make sure you can build / run the tests.
There is a dataset of Heroes and Villains that can fight each other, and we need to determine the winner.
- Implement the
Fightfunction in theBattleclass. The functions takes two arguments, the name of a hero, and the name of a villain. - The function must determine which will win based on the score of that hero and villain and return the name of the winner.
- Two heroes cannot fight each other
- Two villains cannot fight each other
- All of the types for serialising have been specified.
- We're not interested in the perfect solution, just how you approach the problem.