79605948

Date: 2025-05-04 18:49:30
Score: 1.5
Natty:
Report link

Notice at line 40 you use == to assign a value to computerMove instead of =.
== Compares values, so it evaluates the computerMove expression, which does not exist in that case.

The error only happens if you choose 's' on the first run, otherwise the variable is already defined on previous loop iterations, however then you have a bug that you never assign 's' to it.

Change == to = and it will fix it

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Eli Alkhazov