42 lines
1.2 KiB
Python
42 lines
1.2 KiB
Python
#!/usr/bin/env python3
|
|
"""Verify first contextual learning prompts are documented."""
|
|
|
|
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
DOC = ROOT / "Docs" / "KnowledgeAndSkillFoundation.md"
|
|
ROADMAP = ROOT / "AGRARIAN_DEVELOPMENT_ROADMAP.md"
|
|
|
|
REQUIRED = {
|
|
DOC: [
|
|
"## First Contextual Learning Prompts",
|
|
"Fire safety:",
|
|
"Potable water:",
|
|
"Exposure:",
|
|
"Shelter placement:",
|
|
"Injury care:",
|
|
"Resource identification:",
|
|
"without pausing the game or forcing a quiz",
|
|
],
|
|
ROADMAP: [
|
|
"[x] Add first contextual learning prompts for fire safety, potable water, exposure, shelter placement, injury care, and resource identification.",
|
|
],
|
|
}
|
|
|
|
|
|
def main() -> None:
|
|
missing: list[str] = []
|
|
for path, snippets in REQUIRED.items():
|
|
text = path.read_text(encoding="utf-8")
|
|
for snippet in snippets:
|
|
if snippet not in text:
|
|
missing.append(f"{path.relative_to(ROOT)} missing {snippet!r}")
|
|
if missing:
|
|
raise SystemExit("FAILED: " + "; ".join(missing))
|
|
print("OK: first contextual learning prompts are documented.")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|