Cover MISSING_BATTERIES in a test. Needs unducumented "waste" fallback.
This commit is contained in:
parent
3be0cb3596
commit
992bdbf16c
3 changed files with 37 additions and 1 deletions
5
main.c
5
main.c
|
@ -147,6 +147,11 @@ static bool fallback_handler(struct command_t command)
|
|||
--game.turns;
|
||||
return true;
|
||||
}
|
||||
else if (sscanf(buf, "waste %ld", &sv) == 1) {
|
||||
game.limit -= sv;
|
||||
printf("Game limit is now %ld\n", game.limit);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue