79440136

Date: 2025-02-14 17:35:11
Score: 2.5
Natty:
Report link

The problem is that after the first time the number generated is two, it will always be a ball. This is because the part that checks the random number looks for a 2 in the whole list and that will make the if/else go straight to the else no matter what, as you can see here.

I'll assume that you want to only check the most recent roll, so instead of using <[Pitches v] contains (1)?>, use <(item (1) of [Pitches v])=(1)> like this. This way only the latest throw will be counted.

The answer by @fabianvanacoleyen is the easiest way to do it but this method has the most minimal difference.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @fabianvanacoleyen
  • Low reputation (1):
Posted by: Cod3Play