GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.53

Computational thinking and programming

Project 1: Adventure story

Read a little. Try the workbook. Check your answers. Choose one section below to get started.

10 fillable worksheet pagesRead at your own pace

LET’S TRACE, REASON AND TEST

Project 1: Adventure story

Original companion preparation, project or review

Plan an interactive story as a finite set of choices, branches and endings. Define accepted inputs and invalid-input behaviour. Test every path in the stated design instead of testing only your favourite ending.

Today’s two goals
  • Plan a finite set of story paths and clear input choices.
  • Decompose the story into implementable parts.
Original PaxaKids illustration for Project 1: Adventure story. Use the supplied program and data models for precise workbook facts.
An original PaxaKids workbook scene. Use the supplied programs and data for precise workbook facts.

Work through an example

A small museum story might offer Map or Guide, with one ending for each and a clear retry message for any other response. A branch table makes those three behaviours explicit.

Try before your workbook

Which cases should a test plan include for that two-choice story?

Explore the clues

Tap one card to find out more.

Understand the idea

Plan an interactive story as a finite set of choices, branches and endings. Define accepted inputs and invalid-input behaviour. Test every path in the stated design instead of testing only your favourite ending.

Concept to practise: Project 1: Adventure story.

Work through an example

A small museum story might offer Map or Guide, with one ending for each and a clear retry message for any other response. A branch table makes those three behaviours explicit.

Try before your workbook

Which cases should a test plan include for that two-choice story?

Check my readiness thinking

Include Map, Guide and an unrecognised response. Also test any explicitly accepted alternate spelling; do not claim unstated forms are supported.

Your original programs and learning models

These original PaxaKids program and data models support your workbook. Some examples deliberately contain faults to investigate. Follow their headings and preserve exact code case, punctuation and order. Traces and supplied records are not claims of physical testing.

Create an adventure with meaningful choices

Maya and Paxa are helping at a museum when a sky atlas goes missing. The reader chooses a route and a second action. Each choice changes the next story section and leads to one of four endings.

Use this original model to plan your own finite adventure. Decide its inputs and endings before programming, then test every supported path.

Read the complete supported-path plan

Aliases separated by / mean either input is accepted at that stage. Follow the route before reading its second choice. The same number can mean different things at different stages.
Read the complete supported-path plan — original labelled workbook model. The following text version gives its labels and values.
Read the complete supported-path plan · original PaxaKids model.
Read this model’s labels and values

Specify exactly what the reader can enter

This original program accepts the shown number or word at each stage. It removes surrounding whitespace and converts letters to lowercase before matching, so case and outside spaces do not change a valid word. Other inputs produce the stage’s message and end the story.
Specify exactly what the reader can enter — original model
StageFirst optionSecond option
Route1 or gallery2 or archive
In gallery1 or stars2 or maps
In archive1 or boxes2 or desk

Read the complete original story program

This complete Python 3 starter includes all four endings and the number/word input extension. Indentation keeps each second choice inside its route. There is no repeat loop; the final line is reached after the selected path or an invalid-input message.
Original Paxa museum adventure
print("The museum sky atlas is missing.")
route = input("Route: 1/gallery or 2/archive? ").strip().lower()
if route in ("1", "gallery"):
    print("Maya and Paxa enter the gallery.")
    choice = input("Gallery: 1/stars or 2/maps? ").strip().lower()
    if choice in ("1", "stars"):
        print("STARS: A star chart reveals the missing atlas.")
    elif choice in ("2", "maps"):
        print("MAPS: A map drawer holds the missing atlas.")
    else:
        print("That gallery choice is not available.")
elif route in ("2", "archive"):
    print("Maya and Paxa enter the archive.")
    choice = input("Archive: 1/boxes or 2/desk? ").strip().lower()
    if choice in ("1", "boxes"):
        print("BOXES: A labelled box holds the missing atlas.")
    elif choice in ("2", "desk"):
        print("DESK: Ms Noura returns the atlas from her desk.")
    else:
        print("That archive choice is not available.")
else:
    print("That route is not available.")
print("Story finished.")

Trace every supported ending

Use the page 4 program. Each row starts a fresh run with the two listed inputs. Write the ending label STARS, MAPS, BOXES or DESK. The second input is interpreted only inside the selected route.
Trace every supported ending — original model
Route inputNext inputEnding label
11{'clue': 'Ending label', 'prompt': 'Story path 1 then 1', 'answers': ['STARS']}
gallery2{'clue': 'Ending label', 'prompt': 'Story path gallery then 2', 'answers': ['MAPS']}
2boxes{'clue': 'Ending label', 'prompt': 'Story path 2 then boxes', 'answers': ['BOXES']}
archivedesk{'clue': 'Ending label', 'prompt': 'Story path archive then desk', 'answers': ['DESK']}

Check normalisation and invalid-input behaviour

Use the exact policies on pages 3–4. Padded means ordinary spaces before and after the displayed word. Write the requested ending or the exact explanatory message from the code. These are predictions, not completed practical results.
Check normalisation and invalid-input behaviour — original model
Inputs in a fresh runPrediction
padded GALLERY, then MAPS{'clue': 'Ending or message', 'prompt': 'Input-policy case padded GALLERY, then MAPS', 'answers': ['MAPS']}
garden at route stage{'clue': 'Ending or message', 'prompt': 'Input-policy case garden at route stage', 'answers': ['That route is not available.']}
gallery, then desk{'clue': 'Ending or message', 'prompt': 'Input-policy case gallery, then desk', 'answers': ['That gallery choice is not available.']}
archive, then stars{'clue': 'Ending or message', 'prompt': 'Input-policy case archive, then stars', 'answers': ['That archive choice is not available.']}

Decompose the story into implementable parts

A useful decomposition separates route input and matching, the gallery section, the archive section and the finish/output check. Each story section has a clear input contract and ending. Different people can develop parts if they agree the names, inputs and integration plan.
Decompose the story into implementable parts — original labelled workbook model. The following text version gives its labels and values.
Decompose the story into implementable parts · original PaxaKids model.
Read this model’s labels and values
Root
Finite museum adventure
Children
  1. Route choice
  2. Gallery section
  3. Archive section
  4. Finish / test

Keep a plan, source versions and evidence

Plan the story topic, all choices, accepted inputs and finite endings. Build a small working part, test it, then add the next part. Keep an input-and-expected-output test plan before running the program, and record actual outcomes or Pending afterwards.

Work with a partner if available or individually. Explain your own contribution and preserve any actual feedback and resulting revision.

Files for this activity

Use these original PaxaKids practice files with the matching workbook. Work on a local copy in the appropriate editor. Some examples deliberately contain faults to investigate; a downloaded file is not a completed practical test.

Paxa the Fox

Try one step with Paxa!

Trace code in the stated order and preserve exact spelling and case. Use fictional data. Label a prediction, paper trace, simulator run and physical-device test separately; an unperformed test stays Pending. Save personal responses before leaving.

Our Unit 1 learning path
  1. Lesson 1.1: Recall algorithms and representations
  2. Lesson 1.2: Purpose and conventions of pseudocode
  3. Lesson 1.3: Input, output and strings
  4. Lesson 1.4: Identifiers and assignment
  5. Lesson 1.5: Arithmetic and translation
  6. Lesson 1.6: Trace and review a sequence
  7. Lesson 1.7: Conditions and two-way flow
  8. Lesson 1.8: IF THEN and indentation
  9. Lesson 1.9: IF THEN ELSE and decision diagrams
  10. Lesson 1.10: Ordered ELSEIF and fallback ELSE
  11. Lesson 1.11: Match flowchart and pseudocode branches
  12. Lesson 1.12: AND, OR and NOT
  13. Lesson 1.13: Grouping, precedence and review
  14. Lesson 1.14: Why software searches
  15. Lesson 1.15: A successful linear search
  16. Lesson 1.16: An unsuccessful search and termination
  17. Lesson 1.17: Practise and communicate the search
  18. Lesson 1.18: Translate conditions into Python
  19. Lesson 1.19: One-branch IF programs
  20. Lesson 1.20: Two-way IF ELSE programs
  21. Lesson 1.21: Ordered ELIF choices
  22. Lesson 1.22: Ranges and independent decisions
  23. Lesson 1.23: Boolean operators in Python
  24. Lesson 1.24: Design and test recommendations
  25. Lesson 1.25: Trace, debug and reflect
  26. Lesson 1.26: Choose data types and recognise Boolean literals
  27. Lesson 1.27: Set and use Boolean flags
  28. Lesson 1.28: Explain and identify constants
  29. Lesson 1.29: Express constants in three algorithm forms
  30. Lesson 1.30: Use a fixed factor in a calculation
  31. Lesson 1.31: Cast to Boolean and validate an empty response
  32. Lesson 1.32: Recall calls and trace return values
  33. Lesson 1.33: Supply parameters and reuse library code
  34. Lesson 1.34: Choose and import libraries responsibly
  35. Lesson 1.35: Round with floor and ceiling
  36. Lesson 1.36: Use pi and investigate another mathematical feature
  37. Lesson 1.37: Generate random choices within bounds
  38. Lesson 1.38: Investigate random real values and review library use
  39. Lesson 1.39: Retrieve test tables and predict selection outcomes
  40. Lesson 1.40: Decompose everyday problems
  41. Lesson 1.41: Decompose programs and organise shared work
  42. Lesson 1.42: Develop through repeated build/test cycles
  43. Lesson 1.43: Predict and verify algorithm outcomes
  44. Lesson 1.44: Choose representative and boundary tests
  45. Lesson 1.45: Build, execute and review a test plan
  46. Lesson 1.46: Recall physical inputs and compare transmission media
  47. Lesson 1.47: Configure a radio group and agree a message scheme
  48. Lesson 1.48: Send and receive numbers and strings
  49. Lesson 1.49: Trace numeric message sequences
  50. Lesson 1.50: Transmit text and use received data in conditions
  51. Lesson 1.51: Diagnose and extend a message protocol
  52. Lesson 1.52: Review communication and evidence of testing
  53. Lesson 1.53: Project 1: Adventure story
  54. Lesson 1.54: Project 2: Fire, Water, Earth
  55. Lesson 1.55: Check your progress 1
For grown-ups: using this lesson

Your answers are checked in your browser. Open responses need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Read one explanation, discuss the model and try the readiness check before the workbook. Choose “Mark lesson finished” when ready. Optional account progress saves lesson position and completion across devices; save personal responses before leaving.

2. Fill in your workbook

Read the teaching and complete workbook instructions. Choose, write or draw; Answer list offers larger controls. Trace code precisely and distinguish predictions from actual tests. Review designs, explanations and drawings with a grown-up.

Project 1: Adventure story10 student pages · original artwork

Opening your PDF…

Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.

TAKE YOUR PRACTICE OFFLINE

3. Download the student worksheet

All 10 original A4 student pages, ready for pencil-and-paper practice. Choose Review Answers to check your work on this webpage.

Student worksheet only · PDF · 8.5 MiB · No answer key included

Download worksheet PDF ↓

TRY FIRST, THEN CHECK TOGETHER

Download the student worksheet →

4. Answers & guidance

Finished your try? Open the guide and compare one worksheet at a time. Your own words may be different and still explain the right idea.

Shown on this webpage only. There is no answer-key download, and this guide is left out when printing the page.

Show answers for all 10 worksheets

Worksheet 1

  1. Question 1: What should a branching-story plan show? each choice and where it leads

Worksheet 2

  1. Question 2: How many supported story endings are shown? 4

Worksheet 3

  1. Question 3: At the route stage, which word is an alias for 2? archive
  2. Question 4: After choosing gallery, which word is an alias for 2? maps

Worksheet 4

This page introduces the activity. There are no marked responses on this sheet.

Worksheet 5

  1. Question 5: Story path 1 then 1 STARS
  2. Question 6: Story path gallery then 2 MAPS
  3. Question 7: Story path 2 then boxes BOXES
  4. Question 8: Story path archive then desk DESK
  5. Question 9: Which cases are needed to cover every supported ending? all four path combinations

Worksheet 6

  1. Question 10: Input-policy case padded GALLERY, then MAPS MAPS
  2. Question 11: Input-policy case garden at route stage That route is not available.
  3. Question 12: Input-policy case gallery, then desk That gallery choice is not available.
  4. Question 13: Input-policy case archive, then stars That archive choice is not available.

Worksheet 7

  1. Question 14: What must separate story sections agree before integration? their inputs and where control continues
  2. Question 15: What should happen after a changed story section is integrated? retest affected paths and earlier working behaviour

Worksheet 8

  1. Question 16: Which evidence supports a claim that a path was tested? its saved source, input and actual observed output

Worksheet 9

  1. Question 17: Create a finite adventure-story plan with a clear topic, opening section, at least two choices at each planned decision, all paths and endings. Specify exact reader inputs and where each choice leads. Decompose it into parts that can be programmed separately, with agreed interfaces and a shared-work or individual plan. Include a test plan giving input sequences and expected actions/endings for every choice, plus relevant invalid-input cases. Use an original diagram or table and cite the complete attached design here. Clear original finite story design, every decision at least two meaningful choices, all routes and endings connected with exact unambiguous input meanings. Complete path/decision map and decomposition into implementable parts with names/inputs/integration; real contribution/roles or individual route. Each supported choice and ending has a planned input sequence and expected output, with appropriate invalid-input policy/cases. Supplied museum model may be adapted if changes and own decisions are explicit. Optional number/word aliases specified consistently and tested if adopted. Design is separate from actual execution evidence; no invented shared work. Grown-up review; personal evidence is required.

Worksheet 10

  1. Question 18: Program your planned story, or adapt the complete page 4 model while explaining your changes. Save a complete final program and earlier working versions. Execute every planned choice and ending, record actual inputs/outputs or Pending, and investigate mismatches with corrections and retests. Include invalid-input checks. For the optional extension, accept agreed one-word aliases as well as numbers and test both. Keep the completed test plan, source and actual contribution/feedback or Pending. Explain the evidence, one limit and your next step. Complete working-source artifact matching the planned story and exact input policy, clear sequence/selection/indentation and finite endings. Full final source, earlier meaningful versions, planned input sequences/expected output and actual results or Pending covering every supported choice and ending plus invalid cases. Corrections/retests and earlier-path checks after changes retained; actual source execution distinguished from paper trace. Alias extension if used accepts each number/word pair consistently, explicit whitespace/case policy tested without claiming every conceivable input. Own contribution, actual feedback or Pending, honest limit and useful next step. No invented learner/partner testing or GUI completion. Grown-up review; personal evidence is required.
Back to my workbook ↑

Curriculum & workbook reference

Computing for your homeschool day

Explore Project 1: Adventure story with this free Grade 8 Computing lesson. Read one idea together, try the fillable workbook and return to review at your own pace. Download the same student worksheet PDF for pencil-and-paper practice.

Fit learning around your family’s day. There is no timer and no sign-up is needed to use the lesson. An optional account saves your lesson position and completion across devices. Workbook responses and drawings stay in this tab; save a copy of your responses before leaving.

Understand your results

Closed answers are checked in your browser. Drawings and written explanations need grown-up review and are shown separately from the automatic score. Check your work, then use “Retry answers to practise” to revisit mistakes while keeping correct responses.

Choose Review Answers after trying the activity. The guide stays on the webpage; the worksheet download contains only the student pages.

For programme background, visit the Cambridge Lower Secondary Computing overview. PaxaKids provides independent original companion practice.

Book page references identify the related teaching topic. File-management and responsible-data preparation are original PaxaKids material; orientation or contents pages are not presented as teaching citations for those skills. The explanations, characters, programs and exercises here are original PaxaKids companion practice. Practical tasks require the appropriate editor and, where applicable, suitable equipment. A design or paper trace is not a verified hardware result. Only completed, reviewed lessons are listed.

Explore the Cambridge Lower Secondary Computing curriculum for programme background. PaxaKids is an independent learning resource.