Okay, I take that back. Turns out the tests are even worse than I thought at first.
But, this changes nothing. You receive this error, because reference function returns "Computer won!", so your algorithm is still incorrect.
"Computer won!"
Your code is wrong, and returns a string instead of a number.
This comment is hidden because it contains spoiler information about the solution
Why res in square brackets?
Loading collection data...
Okay, I take that back. Turns out the tests are even worse than I thought at first.
But, this changes nothing. You receive this error, because reference function returns
"Computer won!"
, so your algorithm is still incorrect.Your code is wrong, and returns a string instead of a number.
This comment is hidden because it contains spoiler information about the solution
Why res in square brackets?
This comment is hidden because it contains spoiler information about the solution