# Compass Trail: find your way. All the words of the course live here. # Run: python3 data.py -> writes one JSON file per block into ../content/ import json, os HERE = os.path.dirname(os.path.abspath(__file__)) OUT = os.path.join(HERE, '..', 'content') def curl(x): if isinstance(x, str): return x.replace("'", "’") if isinstance(x, list): return [curl(i) for i in x] if isinstance(x, dict): return {k: (curl(v) if k not in ('id', 'stage', 'screen', 'track', 'type', 'b', 'level', 'special', 'k2', 'anim', 'failAnim', 'part') else v) for k, v in x.items()} return x # ---------------------------------------------------------------- how to play HOW = { "intro": "Welcome to the trail. You walk. The compass shows north. I'm your guide. At each stop I explain one skill, read you a real situation, and tell you how to choose. You make one move, and the trail shows what happened. A clean first try earns three stars. Finish all twelve stops to become a navigator. Then pass the trail test to become a pathfinder.", "picklive": "Tap a piece to add it. Only the right ones stick. Each wrong tap costs a star.", "pick": "Tap the ones you want, then press the button below. If it goes wrong, change your picks and try again.", "talk": "Say it out loud or type it, then press the button to send it.", "dials": "Pick one choice in each row, then press the button below.", "choice": "Tap one answer and watch what happens.", "sort": "Read the item on the card, then tap where it belongs.", "switches": "Tap a switch to turn it off or on, then press the button below.", "spot": "Tap any line you would not trust. Tap again to undo. Then press the button to check.", "test": "Read the situation, then tap the best fix. No second tries here." } # ---------------------------------------------------------------- learn: 12 stops STOPS = [ # ---------- Basics {"id": "parts", "part": "core", "title": "Meet your compass", "teaser": "Six parts, three jobs: aim, read, set.", "stage": "plain", "lesson": [ ["Open the lid. The thin wire in the lid is your front sight.", "reset;cmp~open;lid~wire"], ["The folding piece at the back has a small slot to look through, and a lens to read the dial.", "slot~slot;lens~lens"], ["Under the glass, the dial floats. Its glowing green arrow always points north.", "card~dial;arrow~arrow"], ["You read the number at the fixed line by the hinge. That is the index line.", "index~fixed line;face|62~index line"], ["The ring around the glass turns, and its line marks a number for you. The bubble shows when the compass is flat.", "bezring~ring;bez|62~marks;bubble~bubble"]], "brief": "You just took the compass out of the box. A friend asks what each part is for.", "move": {"type": "sort", "ask": "Where does each part belong?", "bins": ["Aim", "Read", "Set and check"], "items": [ {"t": "The wire in the lid", "b": 0, "hint": "You line the wire up with your target. It aims."}, {"t": "The slot in the rear sight", "b": 0, "hint": "Your eye looks through the slot. It aims."}, {"t": "The lens", "b": 1, "hint": "The lens makes the small numbers big. It reads."}, {"t": "The fixed index line", "b": 1, "hint": "The number under this line is your bearing. It reads."}, {"t": "The turning ring", "b": 2, "hint": "You turn the ring to mark a bearing. It sets."}, {"t": "The bubble level", "b": 2, "hint": "The bubble shows that the compass is flat. It checks."}]}, "win": "Aim with the wire and the slot. Read through the lens at the index line. Set with the ring. Check with the bubble.", "keep": ["Aim: wire and slot. Read: lens and index line. Set: the turning ring. Check: the bubble."], "why": "Every compass skill uses these six parts. When you know which part does which job, every later step is easy."}, {"id": "north", "part": "core", "title": "The arrow only knows north", "teaser": "It never points to where you want to go.", "stage": "plain", "lesson": [ ["The glowing arrow is a magnet. It always turns to point to magnetic north.", "reset;cmp~arrow;face|0~magnetic"], ["Turn your body, and the compass turns with you. The arrow stays on north.", "face|62~turn your body;arrow~stays"], ["So the dial turns under the index line, and a new number shows. That number is the direction you face.", "index~index line;rd~new number"], ["Facing east, you read 90. Facing south, 180. Facing west, 270.", "face|90~east;face|180~south;face|270~west"], ["The arrow does not point to your goal. You use it to measure the angle to your goal.", "face|62~measure;pill|North is zero|good~angle"]], "brief": "You stand and face a big tree. The compass reads 62. Now you turn to face the lake.", "move": {"type": "choice", "ask": "What does the arrow do?", "opts": [ {"t": "It turns to point to the lake", "no": "No. The arrow only follows north. It does not know about the lake.", "anim": "wrong"}, {"t": "It stays on north, and a new number shows under the index line", "ok": True}, {"t": "It stops working until you face north", "no": "No. It works in every direction. Only the number changes.", "anim": "lost"}]}, "win": "The arrow stayed on north. The number under the index line changed. That number is the direction you face.", "keep": ["The arrow always points north. The number under the index line is the direction I face."], "why": "A compass gives you one fixed reference, north. Every bearing is the angle from north, counted clockwise from 0 to 360."}, {"id": "hold", "part": "core", "title": "Hold it flat, keep it clear", "teaser": "Flat, still, and away from metal.", "stage": "plain", "lesson": [ ["Hold the compass flat. Look at the bubble, and put it in the center.", "reset;cmp~flat;bubble~bubble"], ["If you tilt the compass, the dial can touch the glass and stick. Then the number is wrong.", "tilt~tilt;wobble|Stuck dial~wrong"], ["Metal and magnets pull the arrow: keys, a phone, a belt buckle, a car.", "level~metal;metal~pull"], ["Stay about 18 meters from a car, 10 meters from a wire fence, and 55 meters from power lines.", "pill|Car 18 m · fence 10 m · power line 55 m~18 meters"], ["Before you trust a number, check three things: flat, still and clear.", "nometal~check;pill|Flat · still · clear|good~flat"]], "brief": "You stop on the trail to take a reading. Some things around you can spoil it.", "move": {"type": "switches", "ask": "Switch off what can spoil the reading. Then take the reading.", "action": "Take the reading", "sw": [ {"t": "Phone in the same hand as the compass", "on": True, "want": False, "bad": "The phone pulled the arrow. The number was 15 degrees off."}, {"t": "Standing next to the truck", "on": True, "want": False, "bad": "The truck pulled the arrow. Your line pointed to the wrong hill."}, {"t": "Compass tilted toward you", "on": True, "want": False, "bad": "The dial stuck on the glass. It showed the old number."}, {"t": "Bubble in the center", "on": True, "want": True, "lo": True, "bad": "With the bubble off center, the dial could not turn freely."}], "order": [1, 0, 2, 3]}, "win": "Flat, still and clear. The arrow settled, and the number was true.", "keep": ["Before I read: bubble centered, phone and keys in a pocket, 18 m from cars, 10 m from wire fences, 55 m from power lines."], "why": "The arrow is a small magnet. Steel and magnets near it pull it. A tilted compass can stick. Flat and clear gives a true number."}, {"id": "sight", "part": "core", "title": "Aim and read a bearing", "teaser": "Lid up, slot to your eye, wire on the target, read.", "stage": "plain", "lesson": [ ["To measure the direction to the tree, first open the lid straight up.", "reset;tree~tree;cmp~open;lid~straight up"], ["Tilt the rear sight up about halfway. Hold the compass level, up near your eye.", "slot~rear sight;lens~eye"], ["Look through the slot. Put the slot, the wire and the tree in one line.", "line~slot;wire~wire"], ["Do not move. Look down through the lens, and read the number under the index line: 62.", "face|62~look down;index~index line;rd~line: 62"], ["This is the most accurate way to read a bearing. Read it two times to be sure.", "pill|Within a few degrees|good~accurate"]], "brief": "You want the bearing to the big tree on the far side of the valley.", "move": {"type": "dials", "ask": "Set the three, then take the bearing.", "action": "Take the bearing", "dials": [ {"k": "The lid", "opts": ["Closed over the glass", "Straight up", "Half open"], "ok": 1, "bad": "The lid was not straight up, so the wire did not line up with the tree."}, {"k": "Line up", "opts": ["The arrow and the tree", "The slot, the wire and the tree", "The ring and the tree"], "ok": 1, "bad": "The arrow points north, not to the tree. Your number was wrong."}, {"k": "Read the number", "opts": ["Where the arrow points", "Under the index line", "On the ruler edge"], "ok": 1, "bad": "The arrow always shows north. Your bearing is under the index line."}]}, "win": "Lid up. Slot, wire and tree in one line. The number under the index line is 62. That is your bearing.", "keep": ["Lid straight up. Slot, wire and target in one line. Read under the index line. Read two times."], "why": "Sighting puts your eye, the wire and the target on one straight line. That makes the number accurate to a few degrees."}, {"id": "walk", "part": "core", "title": "Walk a bearing", "teaser": "Set the ring once. Turn your body, not the ring.", "stage": "plain", "lesson": [ ["You have a bearing to the tree: 62. Now set it, so that you can walk without reading numbers.", "reset;cmp~tree: 62;face|62~set it"], ["While you face 62, turn the ring until its line sits on top of the arrow.", "bez|62~turn the ring;arrow~arrow"], ["Hold the compass in front of your belly, with your elbows in. Turn your whole body, not only your hands.", "pill|Belly height · elbows in~belly"], ["When the arrow is under the line, you face 62. Then walk.", "walkline~walk"], ["If the arrow moves off the line, stop. Turn your body until the arrow is back. Do not turn the ring.", "cmp~stop;drift~moves off;face|62~turn your body"]], "brief": "You set the ring to 62 and started to walk. After a minute, the arrow is not under the line.", "move": {"type": "choice", "ask": "What do you do?", "opts": [ {"t": "Turn the ring to put the line back on the arrow", "no": "Now the ring marks a new bearing. You walked to the wrong hill.", "anim": "wrong"}, {"t": "Turn your body until the arrow is back under the line, then walk on", "ok": True}, {"t": "Keep walking. You know the way.", "no": "With no check, you drifted. You walked in a big curve.", "anim": "lost"}]}, "win": "You turned your body, not the ring. The arrow sat under the line, and you walked straight to the tree.", "keep": ["Set the ring once. Then turn my body, never the ring, to keep the arrow under the line."], "why": "The ring holds your bearing. If you move the ring, you lose the bearing. Your body is the part that turns."}, {"id": "marks", "part": "core", "title": "Walk from landmark to landmark", "teaser": "Look up, pick a mark, walk to it.", "stage": "plain", "lesson": [ ["Do not walk with your eyes on the compass. You will trip, and you will drift.", "reset;hiker~trip;wobble|Eyes down~drift"], ["Instead, sight along your bearing. Pick a mark on the line: a bush, a rock, a lone tree.", "line~sight;m1~bush;m2~rock"], ["Put the compass away, and walk to the mark. Then sight again, and pick the next mark.", "hop~walk to the mark"], ["Pick marks that do not move. Not a cloud. Not a cow.", "pill|Marks that stay in place|good~do not move"], ["Mark by mark, you get to the tree.", "tree~tree"]], "brief": "You stand on your bearing to the tree. You need a mark on the line to walk to.", "move": {"type": "choice", "ask": "Which mark do you pick?", "opts": [ {"t": "A cloud right above the line", "no": "The cloud moved. So did your line.", "anim": "lost"}, {"t": "A big rock on the line, 200 meters away", "ok": True}, {"t": "A cow on the line", "no": "The cow walked away. You followed it.", "anim": "wrong"}]}, "win": "The rock stayed in place. You walked to it, sighted again, and picked the next mark.", "keep": ["Sight along my bearing, pick a mark that does not move, walk to it, and do it again."], "why": "Steering marks let you look at the ground, not at the dial. Each new sighting corrects small drift."}, # ---------- Map and tricks {"id": "home", "part": "pro", "title": "The way home", "teaser": "Add or subtract 180.", "stage": "plain", "lesson": [ ["You walked out on 62. To come home, walk the same line in the other direction.", "reset;line~walked out;home~other direction"], ["That is the back bearing. If your number is less than 180, add 180.", "pill|Less than 180: add 180~add"], ["62 plus 180 is 242. Walk 242 to come home.", "cmp~62 plus;face|242~is 242"], ["If your number is 180 or more, subtract 180. 300 becomes 120.", "face|300~300 becomes;face|120~becomes 120"], ["Write both numbers down before you leave. Then you do not do math when you are tired.", "pill|Out 62 · home 242|good~write"]], "brief": "Two walks today. Work out the way home for each.", "move": {"type": "dials", "ask": "Set the way home for each walk, then walk back.", "action": "Walk back", "dials": [ {"k": "Out on 62°. Home on", "opts": ["118°", "242°", "62°"], "ok": 1, "bad": "That is not the reverse of 62. You walked away from the car."}, {"k": "Out on 300°. Home on", "opts": ["480°", "240°", "120°"], "ok": 2, "bad": "300 minus 180 is 120. The other number took you the wrong way."}]}, "win": "242 and 120. Both back bearings took you straight back to the car.", "keep": ["Back bearing: under 180, add 180. 180 or more, subtract 180. Write both down before I leave."], "why": "A straight line goes both ways. The opposite direction is always 180 degrees from the first."}, {"id": "decl", "part": "pro", "title": "Map north and compass north", "teaser": "Near El Paso, about 7 degrees apart.", "stage": "plain", "lesson": [ ["Your compass points to magnetic north. Most maps use true north, the North Pole.", "reset;mapup~maps;tn~true north;mn~magnetic"], ["The angle between them is the declination. It changes with the place and the year.", "decl~angle"], ["Near El Paso, it is about 7 degrees east in late 2026. Your map or the NOAA calculator gives your number.", "pill|El Paso: about 7° east~el paso"], ["From compass to map, add the east declination. 40 on the compass is 47 on the map.", "cmp~compass to map;face|40~40 on;pill|Compass to map: add 7|good~is 47"], ["From map to compass, subtract it. 90 on the map is 83 on your compass.", "face|83~subtract;pill|Map to compass: subtract 7|good~is 83"]], "brief": "You are near El Paso, where the declination is about 7 degrees east. Your map and your compass must agree.", "move": {"type": "dials", "ask": "Change each number, then walk.", "action": "Walk it", "dials": [ {"k": "The map says 90°. Set the compass to", "opts": ["97°", "83°", "90°"], "ok": 1, "bad": "That is not 90 minus 7. After one kilometer you were far off the trail."}, {"k": "The compass reads 40°. Draw on the map", "opts": ["33°", "40°", "47°"], "ok": 2, "bad": "Your line on the map pointed the wrong way. It missed the trail junction."}]}, "win": "83 on the compass, 47 on the map. Now map and compass agree.", "keep": ["Declination here: [number] east. Compass to map: add it. Map to compass: subtract it. If it is west, do the opposite."], "why": "Magnetic north and true north are in different places. Over one kilometer, 7 degrees puts you about 120 meters off."}, {"id": "mapturn", "part": "pro", "title": "Turn the map to match the land", "teaser": "Line up the map, then read bearings from it.", "stage": "plain", "lesson": [ ["A map is easiest to read when it points the same way as the land.", "reset;map~map"], ["Put the compass edge along a north line on the map, lid toward the top.", "mcomp~compass edge"], ["Turn the map and the compass together until the index line reads 353. That is 360 minus 7, for El Paso.", "turnmap~turn the map"], ["Now the hill in front of you is in front of you on the map.", "pill|Map matches the land|good~in front"], ["For a bearing from the map, keep it in place. Put the edge from you to your goal, and read the index line.", "route~put the edge"]], "brief": "You have a map of the park and your compass. You want the map to match the land.", "move": {"type": "pick", "ask": "Pick the steps that turn the map the right way, then check.", "action": "Turn the map", "failAnim": "lost", "opts": [ {"t": "Put the compass edge along a north line on the map", "ok": True, "miss": "With no edge on a north line, the compass measured nothing on the map."}, {"t": "Turn only the compass", "no": "The map did not move. It still pointed the wrong way."}, {"t": "Turn the map and the compass together until the index line reads 353", "ok": True, "miss": "The map stayed 7 degrees off. Every line you drew was off too."}, {"t": "Hold the map so that you can read the words", "no": "The words can point any way. The map must point like the land."}, {"t": "Check that the hill ahead is ahead on the map", "ok": True, "miss": "With no check, you did not see that the map was upside down."}]}, "win": "Edge on a north line, the index at 353, and the hill ahead is ahead on the map. Map and land agree.", "keep": ["Compass edge on a map north line. Turn map and compass together to 360 minus my declination. Check one landmark."], "why": "A turned map lets you match what you see to what is drawn. It also gives you compass bearings straight from the map."}, {"id": "pace", "part": "pro", "title": "How far? Count your paces", "teaser": "Know your count for 100 meters.", "stage": "plain", "lesson": [ ["A bearing gives the direction. You also need the distance.", "reset;line~direction;feet~distance"], ["Count one pace each time your left foot lands. Walk a measured 100 meters, and count.", "count~left foot"], ["Many adults count about 60 to 70 paces in 100 meters. Find your own number.", "pill|My count: __ per 100 m|good~own number"], ["Uphill, in sand or in brush, your steps get shorter, and the count goes up.", "pill|Uphill · sand · brush: more paces~uphill"], ["Mark each 100 meters with a bead, a knot or a finger. Then you do not lose the count.", "beads~bead"]], "brief": "Your count is 64 paces in 100 meters. The lake is 400 meters away on the map.", "move": {"type": "dials", "ask": "Set the two, then walk.", "action": "Walk it", "dials": [ {"k": "Count to", "opts": ["64", "160", "256"], "ok": 2, "bad": "That count is not 4 times 64. You stopped in the wrong place."}, {"k": "Up a steep hill, your count will", "opts": ["Go down", "Stay the same", "Go up"], "ok": 2, "bad": "Uphill steps are shorter. You stopped before you got there."}]}, "win": "256 paces, plus a few more for the hill. You stopped at the lake.", "keep": ["My pace count: [number] in 100 m on flat ground. More uphill, in sand and in brush. Mark each 100 m."], "why": "Direction and distance together tell you where you are. Counting is simple, and it needs no battery."}, {"id": "around", "part": "pro", "title": "Go around an obstacle", "teaser": "Make a box with right angles.", "stage": "plain", "lesson": [ ["A pond is on your line. You cannot walk through it. Go around it in a box.", "reset;line~line;pond~pond"], ["Turn 90 degrees right: 62 plus 90 is 152. Walk past the edge, and count your paces.", "box1~turn 90"], ["Turn back to 62. Walk until you are past the pond.", "box2~turn back"], ["Turn 90 degrees left: 62 minus 90 is 332. Walk the same number of paces as the first side.", "box3~left"], ["Now you are back on your line. Turn to 62, and walk on.", "box4~back on your line"]], "brief": "You walk on 62. A pond blocks the way. You plan to go around on the right side.", "move": {"type": "dials", "ask": "Set the box, then walk it.", "action": "Walk the box", "dials": [ {"k": "First side", "opts": ["242°", "152°", "332°"], "ok": 1, "bad": "That is not a right turn from 62. You did not get around the pond."}, {"k": "Third side", "opts": ["152°", "62°", "332°"], "ok": 2, "bad": "That side did not take you back to your line. You ended up beside it."}, {"k": "Third side length", "opts": ["Any distance", "Half the first side", "The same paces as the first side"], "ok": 2, "bad": "You came back to a point beside your line, not on it."}]}, "win": "152, then 62, then 332 for the same paces. You were on your line again, past the pond.", "keep": ["Box around it: turn 90 right and count paces. Walk my bearing past it. Turn 90 left for the same paces. Back on my bearing."], "why": "Right angles and equal pace counts cancel out. You end up on the line you left, with no guess."}, {"id": "where", "part": "pro", "title": "Where am I?", "teaser": "Two bearings, two lines, one cross.", "stage": "plain", "lesson": [ ["You are not sure where you are. But you can see two things that are on your map.", "reset;tower~two things;peak~map"], ["Take a bearing to each one. The tower is at 30. The peak is at 300.", "cmp~bearing;face|30~tower;face|300~peak"], ["Change each to a back bearing: 210 and 120.", "pill|30 → 210 · 300 → 120~back bearing"], ["On the map, draw a line from the tower at 210, and a line from the peak at 120.", "cross~draw"], ["You are where the lines cross. Pick things far apart, about 90 degrees apart, for a clear cross.", "youx~cross"]], "brief": "You can see a radio tower and a peak. Both are on your map.", "move": {"type": "choice", "ask": "Which lines do you draw on the map?", "opts": [ {"t": "30° from the tower and 300° from the peak", "no": "Those lines point away from you. They crossed far off the map.", "anim": "lost"}, {"t": "210° from the tower and 120° from the peak", "ok": True}, {"t": "One line is enough", "no": "One line says you are somewhere on it. You need a second line to cross it.", "anim": "miss"}]}, "win": "210 from the tower and 120 from the peak. The lines crossed at the saddle, and that is where you stand.", "keep": ["Where am I: bearings to two mapped things far apart, change to back bearings, draw both lines. I am where they cross."], "why": "Each back bearing is a line that you stand on. Two lines meet at one point, and that point is you."} ] TEST = [ {"s": "You take a reading next to your truck. The number looks strange.", "typed": "Reading: 40°, at the truck door.", "opts": ["Trust it. Compasses do not make mistakes.", "Walk 20 meters away from the truck and read again.", "Shake the compass."], "ok": 1, "stop": 2}, {"s": "While you walk, the arrow moves off the ring's line.", "typed": "Plan: turn the ring to match the arrow.", "opts": ["Turn the ring.", "Turn your body until the arrow is under the line.", "Walk faster."], "ok": 1, "stop": 4}, {"s": "You walked out on 75°. Now you want to go back to the car.", "typed": "Plan: walk 75° again.", "opts": ["Walk 255°.", "Walk 105°.", "Walk 75°, but faster."], "ok": 0, "stop": 6}, {"s": "Near El Paso, the map gives 120° to the spring.", "typed": "Plan: set the compass to 120°.", "opts": ["Set 127°.", "Set 113°.", "Set 120°. It is close enough."], "ok": 1, "stop": 7}, {"s": "A pond blocks your bearing of 62°.", "typed": "Plan: walk around it any way, then guess.", "opts": ["A box: 152°, then 62°, then 332° for the same paces.", "Walk around and guess.", "Go back to the car."], "ok": 0, "stop": 10} ] PASS = "You passed. Hold it flat and clear. Aim, read, set, and walk from mark to mark. Know your way home, your declination and your pace count. Make a box around trouble, and find yourself with two lines. You are a pathfinder." # ---------------------------------------------------------------- build: one real walk, 10 steps BUILD = [ {"id": "b1", "title": "Plan it at home", "teaser": "Mark the start, the goal and a backstop.", "screen": "map", "lesson": [ ["The real project: walk from your car to a lookout, about 1.2 kilometers away, and back.", "scr|map"], ["Plan it at home, on a map. Mark the start: your car.", "mpstart~your car"], ["Mark the goal: the lookout on the ridge.", "mpgoal~lookout"], ["Then find a backstop behind the goal, like this road. If you reach it, you went too far.", "mpstop~backstop"]], "brief": "The map is on your table. Before you leave, you mark it up.", "move": {"type": "pick", "ask": "Pick what you mark on the map, then save it.", "action": "Save the plan", "failAnim": "lost", "opts": [ {"t": "The start: the car park", "ok": True, "miss": "With no start marked, you measured from the wrong place."}, {"t": "The goal: the lookout", "ok": True, "miss": "With no goal marked, there was nothing to measure to."}, {"t": "Nothing. I'll find it when I'm there.", "no": "A plan made on the trail is a guess."}, {"t": "A backstop behind the goal: the road", "ok": True, "miss": "You walked past the lookout, and nothing told you to stop."}]}, "win": "Start, goal and backstop are on the map. Now you can measure.", "keep": ["Before I leave: mark the start, the goal, and a backstop behind the goal."], "why": "A plan made at a table is calm and exact. On the trail, you only follow it and check it."}, {"id": "b2", "title": "Take the bearing from the map", "teaser": "Turn the map, put the edge on the route, read.", "screen": "mapbear", "lesson": [ ["Next, get the bearing from the car to the lookout.", "scr|mapbear"], ["Turn the map until the index line reads 353 on a north line. Now the map matches the land.", "mbturn~reads 353"], ["Put the compass edge from the car to the lookout, with the lid toward the lookout.", "mbedge~compass edge"], ["Read the index line: 62. Write it down, with the way home: 242.", "mbread~line: 62"]], "brief": "The map is turned on the table at the trailhead. You need the bearing to the lookout.", "move": {"type": "dials", "ask": "Set the three, then read.", "action": "Read the bearing", "dials": [ {"k": "Turn the map until a north line reads", "opts": ["360°", "353°", "7°"], "ok": 1, "bad": "That is not 360 minus 7. Every bearing from the map was off."}, {"k": "Put the edge", "opts": ["From the lookout to the car", "From the car to the lookout"], "ok": 1, "bad": "You measured the way home, 242, not the way out."}, {"k": "Read the number", "opts": ["Where the arrow points", "Under the index line"], "ok": 1, "bad": "The arrow shows north. The bearing is under the index line."}]}, "win": "62 to the lookout, 242 back to the car. Both numbers are on your card.", "keep": ["Turn the map to 360 minus declination. Edge from start to goal, lid to the goal. Read the index line. Write out and back."], "why": "With the map turned to match the land, the compass reads a bearing straight from the map. You do no math on the trail."}, {"id": "b3", "title": "Measure the distance", "teaser": "Use the ruler edge and the map scale.", "screen": "ruler", "lesson": [ ["Now the distance. Use the ruler on the edge of the compass.", "scr|ruler"], ["The route is 5 centimeters on the map.", "rlcm~5 centimeters"], ["On a 1 to 24,000 map, 1 centimeter is 240 meters. So 5 centimeters is 1,200 meters.", "rlm~1,200"], ["Your count is 64 paces in 100 meters. 12 times 64 is 768 paces.", "rlp~is 768"]], "brief": "The route measures 5 centimeters on a 1 to 24,000 map. Your pace count is 64.", "move": {"type": "dials", "ask": "Set the two, then write them down.", "action": "Write it down", "dials": [ {"k": "5 cm on this map is", "opts": ["120 m", "1,200 m", "12 km"], "ok": 1, "bad": "1 cm is 240 meters on this map. 5 cm is 1,200 meters."}, {"k": "With 64 paces in 100 m, count to", "opts": ["64", "1,200", "768"], "ok": 2, "bad": "That count does not match 1,200 meters. You stopped in the wrong place."}]}, "win": "1,200 meters, about 768 paces. Now you know when to look for the lookout.", "keep": ["Distance: centimeters on the map times the scale. Paces: meters divided by 100, times my count."], "why": "Distance tells you when to expect the goal. If you get there too early or too late, you know to check."}, {"id": "b4", "title": "Write the route card", "teaser": "All the numbers on one small card.", "screen": "card", "sd": {"title": "Route card · car to lookout", "rows": [["Out", "62° · 1,200 m · 768 paces"], ["Marks", "lone tree, then the ridge"], ["Backstop", "the road behind the lookout"], ["Home", "242° · aim off to the road"], ["Turn back", "4:30 pm, before dark"], ["Told", "my sister, with this card"]]}, "lesson": [ ["Put every number on one card that fits in your pocket.", "scr|card"], ["Out: 62 degrees, 1,200 meters, 768 paces. Home: 242.", "cdrow|0~out;cdrow|3~home"], ["The marks you will walk to, and the backstop that tells you to stop.", "cdrow|1~marks;cdrow|2~backstop"], ["A time to turn back, and the name of someone who knows your route.", "cdrow|4~turn back;cdrow|5~someone"]], "brief": "Your friend wrote a route card for the same walk. Three lines are wrong.", "move": {"type": "spot", "ask": "Tap the lines you would not trust. Then check.", "action": "Check my catch", "code": True, "notes": "Route card · car to lookout", "parts": [ {"t": "Out: 62°, 1,200 m, 768 paces", "why": "Bearing, distance and paces. Good."}, {"t": "Home: 62°", "bad": True, "why": "The way home is the back bearing: 242."}, {"t": "Marks: the lone tree, then the ridge", "why": "Marks that stay in place. Good."}, {"t": "If I miss it: keep walking until I see it", "bad": True, "why": "Name a backstop. The road behind the lookout tells you that you went too far."}, {"t": "Turn back: 4:30 pm, before dark", "why": "A fixed time. Good."}, {"t": "Told: nobody", "bad": True, "why": "Tell someone your route and your turn-back time."}]}, "win": "Three lines fixed: home is 242, the road is the backstop, and your sister has the card.", "keep": ["Route card: out bearing, distance, paces, marks, backstop, home bearing, turn-back time, and who knows."], "why": "A card holds the numbers, so your head is free to look at the land. Someone else knowing your plan is your safety net."}, {"id": "b5", "title": "At the car: check and look back", "teaser": "Step away from the car. Note a landmark behind you.", "screen": "check", "sd": {"title": "At the trailhead", "rows": ["Walk 20 meters from the car", "Phone and keys in a pocket", "Bubble centered, read 62 two times", "Look back: the water tank is behind the car"]}, "lesson": [ ["At the trailhead, do not read the compass beside the car. Walk 20 meters away.", "scr|check;ckrow|0~20 meters"], ["Put the phone and keys in a pocket. Center the bubble, and check 62 two times.", "ckrow|1~phone;ckrow|2~bubble"], ["Then look back. Pick a big thing behind the car, like the water tank. On the way home, you aim for it.", "ckrow|3~look back"]], "brief": "You are at the car, ready to start. Some switches are in the wrong position.", "move": {"type": "switches", "ask": "Set each switch, then start the walk.", "action": "Start the walk", "sw": [ {"t": "Take the reading at the car door", "on": True, "want": False, "bad": "The car pulled the arrow. You started on the wrong bearing."}, {"t": "Phone and keys in a pocket", "on": False, "want": True, "bad": "The phone in your hand moved the arrow 10 degrees."}, {"t": "Note the water tank behind the car", "on": False, "want": True, "bad": "On the way home, you had nothing big to aim for."}], "order": [0, 1, 2]}, "win": "Clear of the car, phone away, 62 checked two times, and the water tank noted for later.", "keep": ["At the start: 20 m from the car, phone away, check the bearing two times, and note a big landmark behind me."], "why": "The first reading sets the whole walk. A small error at the car grows with every step."}, {"id": "b6", "title": "Walk the first leg", "teaser": "Ring set, marks picked, paces counted.", "screen": "walk", "lesson": [ ["Set the ring on 62. Sight along it, and pick the first mark: the lone tree.", "scr|walk"], ["Walk to it, and count your paces. Then sight again from the tree.", "wkhop|0~walk to it;wkhop|1~sight again"], ["Pick the next mark, the notch in the ridge, and walk on.", "wkhop|2~next mark"]], "brief": "You reach the lone tree. The lookout is not in view yet.", "move": {"type": "choice", "ask": "What do you do next?", "opts": [ {"t": "Walk toward the hill that looks right", "no": "It looked right, but it was the wrong hill."}, {"t": "Sight 62 again from the tree, and pick the next mark on the line", "ok": True}, {"t": "Turn the ring to where you think the lookout is", "no": "Now the ring marks a guess, not your bearing."}]}, "win": "From the tree, you sighted 62 again and picked the notch. Mark by mark, the line stays straight.", "keep": ["At each mark: stop, sight my bearing again, pick the next mark, and keep counting."], "why": "Each new sighting fixes small drift before it adds up. The count tells you how far you are."}, {"id": "b7", "title": "Go around the wash", "teaser": "A box, and paces that still count.", "screen": "box", "lesson": [ ["A deep wash cuts across your line. Go around it in a box.", "scr|box"], ["Turn right to 152, and count. You count 40 paces.", "bxleg|0~to 152"], ["Turn to 62, and walk past the wash. These paces count toward your 768.", "bxleg|1~to 62"], ["Turn left to 332, and walk the same 40 paces. Now you are back on your line.", "bxleg|2~to 332;bxok~back on your line"]], "brief": "You walked 40 paces on 152 to get past the end of the wash.", "move": {"type": "dials", "ask": "Set the rest of the box, then walk it.", "action": "Walk the box", "dials": [ {"k": "Walk past the wash on", "opts": ["242°", "62°", "152°"], "ok": 1, "bad": "That is not your bearing. The wash stayed between you and the lookout."}, {"k": "Back to the line on 332° for", "opts": ["20 paces", "80 paces", "40 paces"], "ok": 2, "bad": "The sides did not match. You came back beside your line."}, {"k": "Paces walked on 62° past the wash", "opts": ["Add them to the count", "Do not count them"], "ok": 0, "bad": "You lost those meters. Your count said you were short when you were not."}]}, "win": "62 past the wash, 40 paces back on 332, and the paces added to your count. You are on your line.", "keep": ["Box around it, the same paces out and back. Paces on my bearing still count."], "why": "The side legs cancel out. The leg on your bearing moves you forward, so it counts."}, {"id": "b8", "title": "Check where you are", "teaser": "Two bearings, one cross, and your count.", "screen": "cross", "lesson": [ ["Your count says 640 paces, but you do not see the lookout yet. Check where you are.", "scr|cross"], ["The tower reads 30, so draw 210 from it.", "crl|0~draw 210"], ["The peak reads 300, so draw 120 from it.", "crl|1~draw 120"], ["The lines cross 200 meters before the lookout. That matches your count.", "crx~cross"]], "brief": "The lines cross 200 meters before the lookout. Your count is 640 paces, about 1,000 meters.", "move": {"type": "choice", "ask": "What do you conclude?", "opts": [ {"t": "I am at the lookout. Stop here.", "no": "The cross and the count both say you are 200 meters short."}, {"t": "I am about 200 meters short. Walk on 62 for about 128 more paces.", "ok": True}, {"t": "The compass is broken.", "no": "The compass and the count agree. Nothing is broken."}]}, "win": "The cross and the count agree: 200 meters to go. 128 paces later, you are at the lookout.", "keep": ["When unsure: two bearings to mapped things, two lines, compare the cross with my pace count."], "why": "Two methods that agree give you confidence. If they do not agree, you stop and check before you go on."}, {"id": "b9", "title": "Walk home, and aim off", "teaser": "Aim a little to one side, on purpose.", "screen": "aimoff", "lesson": [ ["Time to go home on 242. The car is small, but the road to it is long.", "scr|aimoff"], ["If you aim straight at the car and miss, you do not know: is it left or right?", "aoq~left or right"], ["So aim 10 degrees to the left, at 232. When you hit the road, you know the car is to your right.", "aoaim~at 232;aoturn~to your right"]], "brief": "The car sits on a road that runs left to right. You walk home from the lookout.", "move": {"type": "choice", "ask": "How do you aim?", "opts": [ {"t": "Aim exactly at 242, and hope", "no": "You hit the road. Was the car left or right? You guessed wrong."}, {"t": "Aim 10 degrees left, at 232. At the road, turn right to the car.", "ok": True}, {"t": "Walk until you see the car", "no": "The car was behind a hill. You walked past it."}]}, "win": "At 232 you hit the road, turned right, and saw the water tank. The car was there.", "keep": ["To find a small target on a long line: aim off 10 degrees to one side, then turn the known way at the line."], "why": "Nobody walks a perfect line. Aiming off turns a small error into a known direction."}, {"id": "b10", "title": "After the walk: fix your numbers", "teaser": "Write down what you learned.", "screen": "notes", "sd": {"title": "Notes after the walk", "rows": ["Real count on this ground: 72, not 64", "I drift right: check every 200 m", "Wash detour: 4 minutes", "Next: the canyon loop"]}, "lesson": [ ["At home, write down what the walk taught you.", "scr|notes"], ["Your real pace count on rocky ground was 72, not 64.", "ntrow|0~was 72"], ["You drift to the right, so you check more often.", "ntrow|1~drift"], ["Next time, these notes make the walk easier.", "ntrow|2~notes;ntrow|3~easier"]], "brief": "You are home. Your route card has notes in the margin.", "move": {"type": "pick", "ask": "Pick what you write down, then save it.", "action": "Save my notes", "failAnim": "lost", "opts": [ {"t": "My real pace count on this ground", "ok": True, "miss": "Next time, you used 64 again and stopped short."}, {"t": "Nothing. It went fine.", "no": "It went fine because you checked. The numbers still change next time."}, {"t": "Which way I drift, and how much", "ok": True, "miss": "You drifted right again, and you did not expect it."}, {"t": "The next walk I want to do", "ok": True, "miss": "With no next walk on the list, the skill faded."}]}, "win": "A real pace count, your drift, and the next walk. Each walk makes the next one easier.", "keep": ["After each walk: write my real pace count, which way I drift, and my next walk."], "why": "Your numbers change with ground and season. Written notes turn one walk into a skill that grows."} ] # ---------------------------------------------------------------- level up: 7 habits LEVEL = [ {"id": "u1", "title": "Practice in a park first", "teaser": "Walk a triangle. Do you end at the start?", "screen": "triangle", "lesson": [ ["Habit one: practice where it is safe, in a park or a field.", "scr|triangle"], ["Put a cap on the ground. Walk 50 paces on 0.", "trleg|0~50 paces"], ["Turn to 120, and walk 50 paces. Turn to 240, and walk 50 paces.", "trleg|1~to 120;trleg|2~to 240"], ["If you are back at the cap, your skills work. If not, you see how far off you are.", "trok~back at the cap"]], "brief": "You set out a triangle course in the park. Leg one is 50 paces on 0.", "move": {"type": "dials", "ask": "Set the triangle, then walk it.", "action": "Walk the triangle", "dials": [ {"k": "Leg two", "opts": ["90°", "120°", "180°"], "ok": 1, "bad": "That angle does not close a triangle with equal sides. You ended far from the cap."}, {"k": "Leg three", "opts": ["240°", "270°", "300°"], "ok": 0, "bad": "The third side did not come back to the cap."}, {"k": "Each leg", "opts": ["Any length", "The same 50 paces"], "ok": 1, "bad": "Unequal sides do not close. The cap was 20 meters away."}]}, "win": "0, 120, 240, with 50 paces each. You ended two steps from the cap. Your skills work.", "keep": ["Practice: a triangle of 0, 120 and 240 degrees, with equal paces. I should end where I started."], "why": "A closed triangle tests your sighting, your walking and your count all at once, with no risk."}, {"id": "u2", "title": "Trust the compass over your feeling", "teaser": "Check it, then believe it.", "screen": "gut", "lesson": [ ["Habit two. In fog, or in thick trees, your feeling can point the wrong way.", "scr|gut"], ["The compass says the trail is to the left. Your feeling says right.", "gtfeel~feeling;gtcomp~compass"], ["Check the compass: flat, still, clear of metal. If it passes, believe the compass.", "gtcheck~check;gtok~believe"]], "brief": "Fog. The compass says left. Every part of you says right.", "move": {"type": "choice", "ask": "What do you do?", "opts": [ {"t": "Go right. You know this place.", "no": "Fog changes how places look. You walked away from the trail."}, {"t": "Check that it is flat and clear of metal, then go left", "ok": True}, {"t": "Stand still until the fog lifts", "no": "The fog stayed for hours. The compass was ready all the time."}]}, "win": "Flat, clear and checked. You went left, and the trail was there.", "keep": ["When the compass and my feeling disagree: check flat, still, clear. Then trust the compass."], "why": "People lose direction easily in fog, trees and the dark. A checked compass does not."}, {"id": "u3", "title": "Use handrails and backstops", "teaser": "Let the land help you.", "screen": "rails", "lesson": [ ["Habit three. A handrail is a long line you can follow, like a fence, a stream or a trail.", "scr|rails"], ["A backstop is a line across your path, after the goal. If you reach it, you went too far.", "rlstop~backstop"], ["Plan the route along handrails, with a backstop behind the goal. The land helps you.", "rlrail~handrails;rlok~helps"]], "brief": "You plan a new walk. Some features on the map can help you.", "move": {"type": "sort", "ask": "Where does each feature belong?", "bins": ["Handrail", "Backstop", "No help"], "items": [ {"t": "A fence that runs toward the goal", "b": 0, "hint": "You can walk along it. It is a handrail."}, {"t": "A road behind the goal", "b": 1, "hint": "If you reach it, you went too far. It is a backstop."}, {"t": "A herd of cattle", "b": 2, "hint": "Cattle move. They are no help."}, {"t": "A stream that runs toward the goal", "b": 0, "hint": "Walk along its bank. It is a handrail."}, {"t": "A canyon rim after the goal", "b": 1, "hint": "It stops you after the goal. It is a backstop."}, {"t": "The shadow of a cloud", "b": 2, "hint": "Shadows move. They are no help."}]}, "win": "Fence and stream to follow, road and rim to stop you. The land does half the work.", "keep": ["Plan along handrails (fence, stream, trail). Put a backstop (road, rim, river) behind the goal."], "why": "Features that do not move hold you on track and catch you if you go past. They also save compass work."}, {"id": "u4", "title": "At night", "teaser": "Set it by day. Walk by the glow.", "screen": "night", "lesson": [ ["Habit four: at night, you cannot read small numbers. So set the ring while it is light.", "scr|night"], ["Shine a flashlight on the dial for a minute. The arrow and the line glow.", "ntglow~glow"], ["Keep the glowing arrow under the glowing line, and count your paces.", "ntline~under the glowing line"]], "brief": "You plan to walk back after sunset.", "move": {"type": "switches", "ask": "Set each switch, then walk in the dark.", "action": "Walk in the dark", "sw": [ {"t": "Set the bearing on the ring while it is light", "on": False, "want": True, "bad": "In the dark, you could not read the numbers to set it."}, {"t": "Charge the glow with a flashlight", "on": False, "want": True, "bad": "The glow was too weak. You could not see the arrow."}, {"t": "Phone screen held next to the compass", "on": True, "want": False, "bad": "The phone pulled the arrow, and you walked 15 degrees off."}], "order": [0, 1, 2]}, "win": "Ring set by day, glow charged, phone away. You walked the glowing line home.", "keep": ["For night: set the ring while it is light, charge the glow with a flashlight, keep the phone away."], "why": "At night, you can see the glow but not the numbers. Prepare in the light, and night is simple."}, {"id": "u5", "title": "Phone and compass together", "teaser": "Use both. Depend on the compass.", "screen": "phone", "lesson": [ ["Habit five. A phone map is a good help. Use it to check where you are.", "scr|phone"], ["But batteries go flat, and signals drop. So download the map before you go.", "phbat~batteries"], ["Carry the paper map and the compass too, and keep the phone away when you read the compass.", "phpaper~paper map"]], "brief": "You pack for a day walk.", "move": {"type": "pick", "ask": "Pick the good habits, then pack.", "action": "Pack it", "failAnim": "lost", "opts": [ {"t": "Download the map for use with no signal", "ok": True, "miss": "No signal in the canyon, and no map on the phone."}, {"t": "Use only the phone. It is enough.", "no": "The battery went flat at 3 pm. You had nothing else."}, {"t": "Carry the paper map and the compass too", "ok": True, "miss": "When the phone died, you had no map."}, {"t": "Keep the phone away from the compass while you read it", "ok": True, "miss": "The phone in your hand pulled the arrow."}]}, "win": "A map with no signal needed, paper and compass in the pack, and the phone kept clear. Both tools help you.", "keep": ["Phone map downloaded. Paper map and compass packed. Phone away when I read the compass."], "why": "A phone is fast and helpful, but it needs a battery and often a signal. A compass needs neither."}, {"id": "u6", "title": "Check it before every trip", "teaser": "Two minutes at home.", "screen": "check", "sd": {"title": "Before every trip", "rows": ["The dial turns freely and settles", "It agrees with a known direction", "Glass, lid and wire are not damaged", "Route card and spare light packed"]}, "lesson": [ ["Habit six: check the compass at home, before every trip.", "scr|check"], ["The dial turns freely and settles. It agrees with a direction you know, like a straight street.", "ckrow|0~turns freely;ckrow|1~agrees"], ["The glass, the lid and the wire are not damaged. The route card and a spare light are packed.", "ckrow|2~glass;ckrow|3~route card"]], "brief": "Your friend wrote a checklist for before a trip. Three lines are wrong.", "move": {"type": "spot", "ask": "Tap the lines you would not trust. Then check.", "action": "Check my catch", "code": True, "notes": "Before every trip", "parts": [ {"t": "Turn slowly. The dial turns freely and settles.", "why": "Good. A stuck dial gives wrong numbers."}, {"t": "Store the compass next to the speaker magnet", "bad": True, "why": "Strong magnets can weaken or upset the arrow. Keep it away."}, {"t": "Compare it with a street that you know runs north to south", "why": "Good. A known direction shows if it reads true."}, {"t": "A bent wire is fine", "bad": True, "why": "A bent wire aims the wrong way. Fix or replace it."}, {"t": "Route card in the pack", "why": "Good."}, {"t": "No need to tell anyone. It is a short walk.", "bad": True, "why": "Short walks go wrong too. Tell someone your route."}]}, "win": "Magnet away, wire straight, someone told. The compass and the plan are ready.", "keep": ["Before a trip: dial free, agrees with a known direction, glass and wire fine, card packed, someone told."], "why": "Two minutes at home catch a problem that could cost hours on the trail."}, {"id": "u7", "title": "Go find your own adventure", "teaser": "The walk you have always wanted to do.", "screen": "adventure", "lesson": [ ["Last habit, and the fun one. Think of a place you have always looked at and never walked to.", "scr|adventure"], ["That peak behind the town. The old mine on the hill. The spring on the map that nobody visits.", "adpin|0~peak;adpin|1~mine;adpin|2~spring"], ["Start small, plan it like the lookout walk, and go. Humbly. With snacks. You have the skills now.", "adplan~plan it;adgo~go"]], "brief": "Pick a real walk that you want to do. Tell it in your own words.", "move": {"type": "talk", "ask": "Tell it in your own words: where you start, where you want to go, and how you get home safely.", "action": "Send my plan", "ph": "Say it or type it. For example: I start at…", "example": "I start at the car park at the end of the canyon road. I want to walk to the old spring on the map, about two kilometers away on a bearing of 115. I'll come home on 295, aim off to the road, and turn back by 4 pm. My sister will have my route card.", "note": "This one is real: what you write is read and checked. To talk, use the microphone on your keyboard. Your words go to Claude for the check, so leave out anything private.", "noteMic": "This one is real: what you say is written down and checked. Your words go to Claude for the check, so leave out anything private.", "chips": ["Where you start", "Where you want to go", "How you get home safely"], "bad": "That is a very short plan. Tell it more.", "early": "Not the whole plan yet. Add what is missing, and send it again.", "ask2": "It has the whole plan. How do you finish?", "closers": [{"t": "“Let's just go now, no card.”", "no": "You left with no card, and nobody knew where you were."}, {"t": "“I'll write the route card, tell someone, and turn back on time.”", "ok": True}, {"t": "“I'll follow my phone the whole way.”", "no": "The battery went flat in the canyon."}]}, "win": "A real place, a real plan, and someone who knows. Go and find it. Then come home and plan the next one.", "keep": ["My next walk: start at [place], go to [goal] on [bearing], home on [back bearing], turn back by [time]. [Name] has my card."], "why": "Skills grow when you use them on a walk you care about. Start small, plan it fully, and every walk teaches you more."} ] # ---------------------------------------------------------------- practice: 12 examples ROOM = { "levels": [{"id": "practice", "name": "Practice", "rank": "", "rules": "", "lives": 0, "time": 0, "hints": True, "pass": ""}], "groups": [ {"name": "Holding and reading", "ids": ["p1", "p2", "p3"]}, {"name": "Walking a bearing", "ids": ["p4", "p5"]}, {"name": "Maps and declination", "ids": ["p6", "p7", "p8"]}, {"name": "Distance and detours", "ids": ["p9", "p10"]}, {"name": "Finding yourself", "ids": ["p11", "p12"]}], "scen": [ {"id": "p1", "level": "practice", "type": "choice", "title": "The car hood", "sit": "You put the compass on the hood of the car so that it is flat.", "q": "Is that a good idea?", "opts": [{"t": "Yes. The hood is flat.", "no": "The steel hood pulls the arrow."}, {"t": "No. Walk 18 meters away and hold it flat in your hands.", "ok": True}, {"t": "Yes, if the engine is off.", "no": "The engine does not matter. The steel does."}], "hint": "What is the hood made of?", "why": "Steel pulls the arrow. Flat is good, but flat on steel is wrong. Hold it level in your hands, away from the car.", "fix": "Read it 18 m from the car, flat in my hands, with the bubble centered."}, {"id": "p2", "level": "practice", "type": "multi", "title": "What spoils a reading?", "sit": "You are about to take a bearing.", "q": "Which of these can pull the arrow? Pick all that apply.", "opts": [{"t": "Keys in the same hand", "ok": True}, {"t": "A wire fence 3 meters away", "ok": True}, {"t": "A wooden picnic table", "no": "Wood does not pull the arrow."}, {"t": "The phone in your shirt pocket", "ok": True}, {"t": "Your cotton hat", "no": "Cloth does not pull the arrow."}], "hint": "Metal, magnets and electronics.", "why": "Steel and magnets pull the arrow. Wood, cloth and plastic do not.", "fix": "Keys and phone in a pocket away from the compass, 10 m from wire fences."}, {"id": "p3", "level": "practice", "type": "order", "title": "Take a bearing", "sit": "You want the bearing to a radio tower.", "q": "Put the steps in order. Tap them from first to last.", "steps": ["Step away from metal", "Open the lid straight up", "Tilt the rear sight up", "Put the slot, the wire and the tower in one line", "Read the number under the index line"], "why": "Clear first, then lid, rear sight, line up, read. Each step makes the next one accurate.", "fix": "Clear of metal, lid up, rear sight up, slot, wire and target in one line, read under the index line."}, {"id": "p4", "level": "practice", "type": "choice", "title": "The arrow moves off", "sit": "You walk on 140. The arrow moves left of the ring's line.", "q": "What do you turn?", "opts": [{"t": "Your body, until the arrow is under the line", "ok": True}, {"t": "The ring, until the line is on the arrow", "no": "Then the ring marks a new bearing, and you lose 140."}, {"t": "Nothing. It is close.", "no": "Small errors grow with every step."}], "hint": "Which part holds your bearing?", "why": "The ring holds the bearing. Your body turns to match it.", "fix": "Turn my body, never the ring, until the arrow is under the line."}, {"id": "p5", "level": "practice", "type": "spot", "title": "A friend's marks", "sit": "Your friend calls out the next marks to walk to.", "q": "Tap the marks that will not work.", "code": True, "parts": [{"t": "Next mark: the radio tower on the line", "why": "It stays in place. Good."}, {"t": "Next mark: that hawk", "bad": True, "why": "Birds fly away."}, {"t": "Next mark: the white rock 150 meters out", "why": "Good."}, {"t": "Next mark: the shadow of that cloud", "bad": True, "why": "Shadows move with the cloud."}], "why": "A steering mark must stay in place until you get to it.", "fix": "Pick a mark on the line that does not move: a rock, a tree, a tower."}, {"id": "p6", "level": "practice", "type": "choice", "title": "The way back", "sit": "You walked out on 210.", "q": "What is your bearing home?", "opts": [{"t": "390", "no": "Bearings stop at 360. 210 is more than 180, so subtract 180."}, {"t": "30", "ok": True}, {"t": "150", "no": "That is not the opposite direction."}], "hint": "Is 210 more or less than 180?", "why": "210 is 180 or more, so subtract 180. Home is 30.", "fix": "Out 210, home 30. Write both down."}, {"id": "p7", "level": "practice", "type": "choice", "title": "Map to compass", "sit": "Near El Paso, the declination is about 7 degrees east. The map gives 200 to a spring.", "q": "What do you set on the compass?", "opts": [{"t": "207", "no": "From map to compass, subtract the east declination."}, {"t": "193", "ok": True}, {"t": "200", "no": "Seven degrees off puts you about 120 meters wide after a kilometer."}], "hint": "Map to compass: add or subtract?", "why": "Map to compass, subtract east declination. 200 minus 7 is 193.", "fix": "Map to compass: subtract [declination east]. Compass to map: add it."}, {"id": "p8", "level": "practice", "type": "order", "title": "Turn the map", "sit": "You want the map to match the land near El Paso.", "q": "Put the steps in order. Tap them from first to last.", "steps": ["Put the compass edge on a map north line", "Turn the map and the compass together", "Stop when the index line reads 353", "Check that the hill ahead is ahead on the map"], "why": "Edge, turn together, stop at 360 minus 7, then check with a landmark.", "fix": "Edge on a north line, turn both to 360 minus my declination, check one landmark."}, {"id": "p9", "level": "practice", "type": "choice", "title": "Deep sand", "sit": "Your count is 64 paces in 100 meters on flat ground. You walk 300 meters in deep sand.", "q": "What do you expect to count?", "opts": [{"t": "Exactly 192", "no": "That is the flat-ground number. Sand makes your steps shorter."}, {"t": "More than 192", "ok": True}, {"t": "Fewer than 192", "no": "Shorter steps mean more paces, not fewer."}], "hint": "Sand makes steps shorter or longer?", "why": "Sand, hills and brush shorten your steps, so the count goes up.", "fix": "On rough ground, expect more paces than my flat count."}, {"id": "p10", "level": "practice", "type": "order", "title": "Around a fence corner", "sit": "You walk on 0. A fenced field blocks the way. You go around on the right.", "q": "Put the steps in order. Tap them from first to last.", "steps": ["Turn to 90, and count your paces", "Turn to 0, and walk past the field", "Turn to 270, and walk the same paces", "Turn to 0, and walk on"], "why": "Right 90, forward, left 90 for the same paces, then on. You end on your line.", "fix": "Box: right 90 and count, forward past it, left 90 for the same paces, back on my bearing."}, {"id": "p11", "level": "practice", "type": "choice", "title": "Two lines", "sit": "You read a tower at 120 and a hill at 30. Both are on the map.", "q": "Which lines do you draw?", "opts": [{"t": "300 from the tower, 210 from the hill", "ok": True}, {"t": "120 from the tower, 30 from the hill", "no": "Those lines point away from you."}, {"t": "300 from the tower, 30 from the hill", "no": "Both lines need back bearings."}], "hint": "From the landmark back to you.", "why": "Draw back bearings from each landmark. You are where they cross.", "fix": "Bearings to two mapped things, change both to back bearings, draw, read the cross."}, {"id": "p12", "level": "practice", "type": "spot", "title": "A route card", "sit": "Your friend shows you a route card.", "q": "Tap the lines that need a fix.", "code": True, "parts": [{"t": "Out: 62°, 1,200 m, 768 paces", "why": "Good."}, {"t": "Home: 62°", "bad": True, "why": "Home is the back bearing: 242."}, {"t": "Backstop: the road behind the lookout", "why": "Good."}, {"t": "Turn back: whenever", "bad": True, "why": "Pick a time, before dark."}, {"t": "Told: my sister, with the card", "why": "Good."}], "why": "A card needs the way home, a turn-back time and someone who knows.", "fix": "Route card: out, home, marks, backstop, turn-back time, who knows."} ] } MODMAP = {"p1": "hold", "p2": "hold", "p3": "hold", "p4": "walk", "p5": "walk", "p6": "home", "p7": "decl", "p8": "map", "p9": "pace", "p10": "box", "p11": "where", "p12": "card"} # ---------------------------------------------------------------- cheat sheets FIELD = {"mods": [ {"id": "explain", "title": "All 12 explanations, back to back", "tag": "Listen", "when": "Hear every explanation in order, with the trail, or tap any line to start there.", "special": "explain"}, {"id": "parts", "title": "Parts of your compass", "tag": "The parts", "jump": "Parts", "when": "When you forget what a part is for.", "steps": ["Lid with the wire: the front sight.", "Rear sight with the slot: the back sight.", "Lens: makes the dial easy to read.", "Index line: read your bearing here.", "Turning ring with a line: holds a bearing for you.", "Bubble: shows when the compass is flat.", "Ruler edge: measures distance on the map."], "prompt": "Aim: wire and slot. Read: lens and index line. Set: the ring. Check: the bubble.", "checks": ["Can you name the part that aims, reads and sets?"], "traps": ["Reading where the arrow points instead of the index line."]}, {"id": "hold", "title": "Hold and read", "tag": "Every reading", "jump": "Hold and read", "when": "Every time you take a bearing.", "steps": ["Walk away from metal: 18 m from cars, 10 m from wire fences, 55 m from power lines.", "Phone and keys in a pocket.", "Lid straight up, rear sight tilted up.", "Hold it level: bubble in the center.", "Slot, wire and target in one line.", "Look down through the lens, read under the index line.", "Read it two times."], "prompt": "Clear of metal. Bubble centered. Slot, wire, target in one line. Read under the index line, two times.", "checks": ["Did the dial float freely?", "Did two readings agree?"], "traps": ["Reading on a car hood.", "A phone in the same hand.", "A tilted compass."]}, {"id": "walk", "title": "Walk a bearing", "tag": "On the move", "jump": "Walk", "when": "Any time you follow a bearing.", "steps": ["Face the bearing: it shows under the index line.", "Turn the ring until its line is on the arrow.", "Hold it at belly height, elbows in.", "Sight along the line, and pick a mark that does not move.", "Walk to the mark. Sight again. Pick the next mark.", "If the arrow moves off the line, turn your body, not the ring."], "prompt": "Ring on the arrow. Mark on the line. Walk to it. Sight again. Turn my body, never the ring.", "checks": ["Is the arrow under the ring's line?", "Is the next mark on the line?"], "traps": ["Turning the ring while you walk.", "Clouds and animals as marks.", "Eyes on the dial, not the land."]}, {"id": "home", "title": "Back bearings", "tag": "The way home", "jump": "Way home", "when": "Before you leave, and whenever you need to go back.", "steps": ["Less than 180: add 180.", "180 or more: subtract 180.", "Examples: 62 to 242. 300 to 120. 210 to 30.", "Write both numbers on the route card."], "prompt": "Out: [bearing]. Home: [bearing ± 180].", "checks": ["Is the answer between 0 and 360?"], "traps": ["Adding when you should subtract and getting more than 360."]}, {"id": "decl", "title": "Declination", "tag": "Map and compass north", "jump": "Declination", "when": "Every time you move a bearing between the map and the compass.", "steps": ["Find your number: the map margin or the NOAA magnetic field calculator.", "Near El Paso, late 2026: about 7 degrees east. It changes slowly every year.", "East declination: compass to map, add. Map to compass, subtract.", "West declination: do the opposite.", "With a map turned to match the land, you read compass bearings straight from it. No math."], "prompt": "Declination here: [number] [east or west]. Compass to map: [add or subtract]. Map to compass: [the opposite].", "checks": ["Is your number from this year and this area?"], "traps": ["Adding when you should subtract: the error doubles.", "An old map with an old declination."]}, {"id": "map", "title": "Map and compass", "tag": "Turn the map", "jump": "Map", "when": "When you plan, and when you check where you are.", "steps": ["Put the compass edge on a map north line, lid toward the top.", "Turn the map and the compass together until the index line reads 360 minus your east declination (353 near El Paso).", "Check one landmark: ahead on the land, ahead on the map.", "For a bearing, keep the map still, put the edge from you to the goal, and read the index line.", "Measure distance with the ruler edge and the map scale."], "prompt": "Map turned to [360 minus declination]. Edge from [start] to [goal]. Bearing: [number].", "checks": ["Does a landmark ahead of you sit ahead on the map?"], "traps": ["Turning only the compass.", "The map upside down."]}, {"id": "pace", "title": "Pace count", "tag": "How far", "jump": "Paces", "when": "Any time distance matters.", "steps": ["Count one pace each time your left foot lands.", "Walk a measured 100 m, and count. Do it three times, and take the middle number.", "Many adults count about 60 to 70.", "Count more uphill, in sand and in brush.", "Mark each 100 m with a bead, a knot or a finger.", "Paces = meters ÷ 100 × your count."], "prompt": "My count: [number] in 100 m. This leg: [meters] m = [paces] paces.", "checks": ["Did you get to the goal close to your count?"], "traps": ["Using someone else's count.", "The same count on every kind of ground."]}, {"id": "box", "title": "Detour box", "tag": "Around trouble", "jump": "Detour", "when": "When something blocks your line.", "steps": ["Turn 90 degrees (bearing + 90), and count paces until you are past the edge.", "Turn back to your bearing, and walk past the obstacle. These paces count.", "Turn 90 degrees the other way (bearing − 90), and walk the same paces.", "Turn to your bearing, and walk on."], "prompt": "Bearing [B]. Box: [B+90] for [n] paces, [B] past it, [B−90] for [n] paces, then [B].", "checks": ["Did the two side legs have the same paces?"], "traps": ["Guessing your way around.", "Forgetting to add the forward paces."]}, {"id": "where", "title": "Where am I?", "tag": "Two lines", "jump": "Where am I", "when": "When you are not sure where you are.", "steps": ["Find two things you can see that are on the map, about 90 degrees apart.", "Take a bearing to each.", "Change each to a back bearing.", "With the map turned or corrected for declination, draw each back bearing from its landmark.", "You are where the lines cross. Compare with your pace count."], "prompt": "[Landmark 1] at [b1], back [b1 ± 180]. [Landmark 2] at [b2], back [b2 ± 180]. Cross: [place].", "checks": ["Do the cross and your count agree?"], "traps": ["Drawing the bearing, not the back bearing.", "Two landmarks in almost the same direction."]}, {"id": "card", "title": "Route card", "tag": "Before you go", "jump": "Route card", "when": "Before every walk.", "steps": ["Out: bearing, distance, paces.", "Marks and handrails on the way.", "Backstop behind the goal.", "Home: back bearing, and which way you aim off.", "Turn-back time.", "Who has a copy."], "prompt": "Out [°], [m], [paces]. Marks: [ ]. Backstop: [ ]. Home [°], aim off [left or right]. Turn back by [time]. [Name] has a copy.", "checks": ["Could someone else walk it from your card?"], "traps": ["No way home on the card.", "No turn-back time.", "Nobody told."]}, {"id": "who", "title": "The compass and you: who does what", "tag": "Roles", "when": "When you decide what to trust.", "special": "who"} ]} # ---------------------------------------------------------------- film FILM = [ "This is you.", "And this is your compass.", "Its glowing arrow always points north. Always.", "You choose where to go: that big tree.", "Aim the wire at the tree, and read the number.", "That number is your path. Keep the arrow in its place, and walk.", "Keep it flat, and away from cars, keys and phones.", "To come home, walk the same line backwards.", "The compass knows north. You know the rest." ] # ---------------------------------------------------------------- write blocks def lessons_of(lst): return {s["id"]: [dict(t=l[0], **({"fx": l[1]} if l[1] else {})) for l in s["lesson"]] for s in lst} def strip(lst, track=None): out = [] for s in lst: d = {k: v for k, v in s.items() if k not in ("lesson", "why")} if track: d["track"] = track; d["stage"] = "studio" out.append(d) return out WHY = {s["id"]: s["why"] for s in STOPS + BUILD + LEVEL} WHY["pass"] = PASS LESSONS = {} for lst in (STOPS, BUILD, LEVEL): LESSONS.update(lessons_of(lst)) if __name__ == '__main__': os.makedirs(OUT, exist_ok=True) blocks = {"how": HOW, "why": WHY, "lessons": LESSONS, "stops": strip(STOPS), "builddata": strip(BUILD, "build"), "leveldata": strip(LEVEL, "level"), "testq": TEST, "roomdata": ROOM, "fielddata": FIELD, "exdata": [], "modmap": MODMAP} for k, v in blocks.items(): with open(os.path.join(OUT, k + ".json"), "w") as f: json.dump(curl(v), f, ensure_ascii=False) json.dump(curl(FILM), open(os.path.join(OUT, 'film.json'), 'w'), ensure_ascii=False) print("ok", {k: len(v) for k, v in blocks.items()}, sum(len(s["keep"]) for s in STOPS + BUILD + LEVEL), 'saved lines')