Ad
  • Custom User Avatar
    Start:
      { name: 'Sandslash', dmg: 11, def: 2, hp: 118 }
      { name: 'Slowpoke', dmg: 11, def: 11, hp: 14 }
    
    After 13 attacks:
      { name: 'Sandslash', dmg: 11, def: 2, hp: 1 }
      { name: 'Slowpoke', dmg: 11, def: 11, hp: 1 }
    
    Sandslash attacks and wins:
      expected 'Winner: Sandslash' to equal 'Winner: Slowpoke'
    

    Nothing's good.

  • Custom User Avatar

    Does all fine now? I check reference, all look good.

  • Custom User Avatar

    the reference solution is incorrect, for now.