YAMLify section 11 (hints).

This commit is contained in:
Eric S. Raymond 2017-06-21 09:41:01 -04:00
parent b37f9f4b2d
commit ddb0df85b3
5 changed files with 128 additions and 46 deletions

View file

@ -89,7 +89,7 @@ long score(enum termination mode)
/* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */
for (long i = 1; i <= HNTMAX; i++) {
if (game.hinted[i])
score = score - HINTS[i][2];
score = score - hints[i-1].penalty;
}
if (game.novice)
score -= 5;