When going on /, there should be an optional welcome message; this is related to error handler messages discussed in #11.
This could be provided in different ways
one riddle/game/__init__.py that includes the homepage, but it is not exposed as url https://server/__init__;
multiple dunder files that have special meaning, e.g. riddle/game/__404__.py or riddle/game/__index__.py;
specific files such as riddle/index.py or riddle/error_handlers.py for handling indices and errors;
Keep in mind that
there are multiple levels in the game (each composed by multiple riddles) and each level might have a different theme, index and error messages, so it might be useful to have something that goes in riddle/game/ subfolders and works as a default for that level and below;
it would be nice to have all gameplay related content in the riddle/game/ so that it does not mix with framework code.
When going on
/
, there should be an optional welcome message; this is related to error handler messages discussed in #11. This could be provided in different waysriddle/game/__init__.py
that includes the homepage, but it is not exposed as urlhttps://server/__init__
;riddle/game/__404__.py
orriddle/game/__index__.py
;riddle/index.py
orriddle/error_handlers.py
for handling indices and errors;Keep in mind that
riddle/game/
subfolders and works as a default for that level and below;riddle/game/
so that it does not mix with framework code.