Question: Please fix my Skibidi java code in pic In the end of the pic contains expected output of every cases It can't pass some cases
Please fix my Skibidi java code in pic
In the end of the pic contains expected output of every cases
It can't pass some cases maybe don't consider some edge cases
First, for Single Abilities caseMy code output is Battle result: Alliance wins but expected output is Battle result: Skibidi winsSecond, for Invalid Ability case, it output as expected but miss some edge cases so can't pass hidden testcases Third, for Draw case, my code output is Battle result: Skibidi wins, but expected output is Battle result: Draw Finally, for Big War, Big Skibidi case, my code output is Alliance wins but expected output is Battle result: Skibidi wins
Please fix it and show your code and output as expected same as my pic, also with detail comment in code
Done individually without consulting someone else solution and ai
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
