Ad
  • Custom User Avatar

    Initial code snippet has a typo "cude" instead of "code":

        // Your cude here
    
    
  • Custom User Avatar

    I had a very similar solution, but I like that yours goes further by adding the Battle::Result enum with Display.

    Maybe take it a step further and impl PartialOrd for GoodSide and EvilSide?