Expand description
Player-facing messages shared by the engine, the session and the UI.
The texts are Czech and exact: levels, tests and the Python version all quote them.
A few carry a placeholder ({path}, {actual}, {error}); fill them with
with_path, not_at_home and with_error instead of formatting by hand, so
the placeholder names stay in one place.
Constants§
- ABSOLUTE_
CD_ NOT_ USED - Level 1.8: the player is in the right place but never used an absolute
cd. - ANSWER_
FORMAT - The answer does not have the expected number of parts.
- ANSWER_
REQUIRED shellgame submitwithout an answer, for a level that asks for one.- ANSWER_
REQUIRED_ LIST - Same, when the expected answer is a list. No level uses it today; kept for parity.
- ANSWER_
REQUIRED_ NUMBER - Same, when the expected answer is a number.
- CD_
RECOVERY_ TIP - Printed under every blocked
cd, so a player can always recover. - CD_
WALK_ NOT_ COMPLETED - Level 1.9: the player is home but did not walk there segment by segment.
- COMPARE_
FAILED - Comparing two trees failed.
{error}is the underlying reason. - COPY_
CONTENT_ MISMATCH - Default text when the copy differs from the original.
- COPY_
DEST_ MISSING - The destination of a copy does not exist.
{path}is the declared path. - COPY_
SOURCE_ MISSING - The source of a copy is gone, perhaps moved instead of copied.
{path}is the declared path. - COPY_
SUCCESS - Success text for a correct copy.
- CORRECT
- Default success message of a level.
- CWD_
MISSING - The player’s working directory no longer exists (usually deleted).
- DIR_
EXISTS - Success text for a directory that exists.
{path}is the declared path. - DIR_
NOT_ EXISTS - A required directory is missing.
{path}is the declared path. - DIR_
STILL_ EXISTS - A directory that should be gone is still there.
{path}is the declared path. - EXPECTED_
INTEGER - The answer is not an integer.
- FILESYSTEM_
ERROR - Generic filesystem failure.
{error}is the underlying reason. - FILE_
CONTENT_ CORRECT - Success text for a file whose content matches.
- FILE_
CONTENT_ MISMATCH - Default text when file content does not match the expectation.
- FILE_
EXISTS - Success text for a file that exists.
{path}is the declared path. - FILE_
NOT_ EXISTS - A required file is missing.
{path}is the declared path. - FILE_
READ_ ERROR - A file could not be read.
{error}is the underlying reason. - FILE_
STILL_ EXISTS - A file that should be gone is still there.
{path}is the declared path. - INCORRECT
- Default wrong-answer text. Terse on purpose, and never contains the answer.
- INTRO_
HINT - The single hint of every section intro.
- L1_
1_ USE_ PWD_ FIRST - Level 1.1: the answer is right, but
pwdwas never used. - L1_
3_ INCLUDED_ EXTENSION - Level 1.3: the answer still has the file extension.
- MARKER_
NOT_ FOUND - Default text when an evidence marker is missing.
- MOVE_
DEST_ MISSING - The destination of a move does not exist.
{path}is the declared path. - MOVE_
SOURCE_ EXISTS - The source of a move still exists, perhaps copied instead of moved.
{path}is the declared path. - MOVE_
SUCCESS - Success text for a correct move or rename.
- NOT_
AT_ HOME at_home()failed.{actual}is the directory the player is in.- PATH_
ESCAPES_ WORKSPACE - A declared path failed containment (symlinked component, escape).
- PERMISSION_
CORRECT - Success text for correctly set permissions.
- PERMISSION_
WRONG - Default text when permissions are not as required.
- WRONG_
DIRECTORY at(..)failed and the level supplied no message of its own.
Functions§
- not_
at_ home NOT_AT_HOMEwith the directory the player is actually in.- with_
error - Fill the
{error}placeholder of a message template. - with_
path - Fill the
{path}placeholder of a message template.