mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Changed final_score to match coding style.
Extremely insignificant change, I just noticed that final_score was set as: final_score = final_score / fuzzies; compared to: "final_score /= fuzzies;" which is how the rest of your syntax is written. (Ex: "+=" and "-=")
This commit is contained in:
parent
ff0d842871
commit
140541925e
1 changed files with 1 additions and 1 deletions
2
vendor/scripts/string_score.js
vendored
2
vendor/scripts/string_score.js
vendored
|
@ -124,7 +124,7 @@
|
|||
//final_score = (word_score + abbreviation_score) / 2;
|
||||
final_score = ((abbreviation_score * (abbreviation_length / string_length)) + abbreviation_score) / 2;
|
||||
|
||||
final_score = final_score / fuzzies;
|
||||
final_score /= fuzzies;
|
||||
|
||||
if (start_of_string_bonus && (final_score + 0.15 < 1)) {
|
||||
final_score += 0.15;
|
||||
|
|
Loading…
Reference in a new issue