Okay, that makes sense.
That said, it still seems like a complicated scoring mechanism. I offer:
my $score = ( $totalTries - $minimumTries ) * ( ( $totalTime - $timeInCheckSub ) / $totalTries );
With the number of tries for any given attempt being set to the theoretical maximum for any erroneous solution returned.
In reply to Re^4: Challenge: Optimal Bagels Strategy
by BrowserUk
in thread Challenge: Optimal Bagels Strategy
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |