Skip to content

dibbdob/tech-test

Repository files navigation

Hero v Villains Pairing Exercise

  1. Begin by forking and cloning this repository
  2. Look around the project and make sure you can build / run the tests.

Task

There is a dataset of Heroes and Villains that can fight each other, and we need to determine the winner.

  1. Implement the Fight function in the Battle class. The functions takes two arguments, the name of a hero, and the name of a villain.
  2. The function must determine which will win based on the score of that hero and villain and return the name of the winner.
  3. Two heroes cannot fight each other
  4. Two villains cannot fight each other
  5. All of the types for serialising have been specified.
  6. We're not interested in the perfect solution, just how you approach the problem.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages