Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Smart move. I like the addition of the beatmap. That would definitely have helped cleanup my solution. It's more readable and cleaner
This solution basically looks at each component and looks at what it can beat. If the component's strength (it can beat it) is the same as the other input component, it will win.
First it checks if the strings are the same, if they are, then return "Draw!"
The second part looks at the hash (dictionary or object) and the key is the item and the component it can beat is the value. It does this by getting the value of the key given.
This comment is hidden because it contains spoiler information about the solution