diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-02 21:58:10 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2023-02-02 21:58:10 +0000 |
| commit | ed682bd5c608156d12ebaa2d84c4ce2e2877c10a (patch) | |
| tree | 33e12f345b52bba603479de160ee8f70f11d19ab /chm.css | |
| parent | ed0e4c304bed990948541fc0cf87309d75653806 (diff) | |
| download | puzzles-ed682bd5c608156d12ebaa2d84c4ce2e2877c10a.zip puzzles-ed682bd5c608156d12ebaa2d84c4ce2e2877c10a.tar.gz puzzles-ed682bd5c608156d12ebaa2d84c4ce2e2877c10a.tar.bz2 puzzles-ed682bd5c608156d12ebaa2d84c4ce2e2877c10a.tar.xz | |
Tighten validation of Tents game descriptions
Specifically, TENT and NONTENT markers ('!' and '-') cannot appear as
the first or last character of a description, because that would
attempt to place them on squares outside the grid. This was caught by
assertions in new_game(), as can be demonstrated by feeding these
descriptions to older versions of Tents: "4:-p,0,0,0,0,0,0,0,0"
("new_game: Assertion `i >= 0 && i <= w*h' failed.") and
4:p-,0,0,0,0,0,0,0,0 ("new_game: Assertion `*desc == ','' failed.").
Diffstat (limited to 'chm.css')
0 files changed, 0 insertions, 0 deletions