GRADE 8 · COMPUTING · UNIT 1 · LESSON 1.54
Computational thinking and programming
Project 2: Fire, Water, Earth
Read a little. Try the workbook. Check your answers. Choose one section below to get started.
LET’S TRACE, REASON AND TEST
Project 2: Fire, Water, Earth
Original companion preparation, project or review
A two-device game needs rules for one complete round before optional scoring. Agree message codes, when choices are revealed and how outcomes are decided. Paper outcomes do not certify radio timing or reliability.
- Specify consistent game rules and a complete outcome table.
- Design input, transmission and comparison behaviour for each device.

Work through an example
For a three-choice cyclic game, a complete one-round table has nine ordered pairs: three draws and six non-draw cases. State the winner for every pair before adding a running score.
Try before your workbook
Why should a one-round design test matching choices as well as different choices?
Explore the clues
Tap one card to find out more.
Understand the idea
A two-device game needs rules for one complete round before optional scoring. Agree message codes, when choices are revealed and how outcomes are decided. Paper outcomes do not certify radio timing or reliability.
Concept to practise: Project 2: Fire, Water, Earth.
Work through an example
For a three-choice cyclic game, a complete one-round table has nine ordered pairs: three draws and six non-draw cases. State the winner for every pair before adding a running score.
Try before your workbook
Why should a one-round design test matching choices as well as different choices?
Check my readiness thinking
Matching choices check the draw rule and reset behaviour. A complete outcome table must cover all allowed pairs, not only winning cases.
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.
Design a two-device Fire, Water, Earth game
Agree rules, inputs, messages, outputs and a reset procedure. Use this complete original starter or design an equivalent. Add the optional win counter only after a complete round works.
Complete every outcome from one device’s viewpoint
| Mine / Theirs | Fire | Water | Earth |
|---|---|---|---|
| Fire | {'clue': 'Win / Lose / Draw', 'prompt': 'Fire against Fire', 'answers': ['Draw']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Fire against Water', 'answers': ['Lose']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Fire against Earth', 'answers': ['Win']} |
| Water | {'clue': 'Win / Lose / Draw', 'prompt': 'Water against Fire', 'answers': ['Win']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Water against Water', 'answers': ['Draw']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Water against Earth', 'answers': ['Lose']} |
| Earth | {'clue': 'Win / Lose / Draw', 'prompt': 'Earth against Fire', 'answers': ['Lose']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Earth against Water', 'answers': ['Win']} | {'clue': 'Win / Lose / Draw', 'prompt': 'Earth against Earth', 'answers': ['Draw']} |
Specify inputs and numeric message meanings
| Input / choice | Round 1 payload | Round 2 payload |
|---|---|---|
| A / fire | {'clue': 'Number sent', 'prompt': 'Round1 A / fire', 'answers': ['11']} | {'clue': 'Number sent', 'prompt': 'Round2 A / fire', 'answers': ['21']} |
| B / water | {'clue': 'Number sent', 'prompt': 'Round1 B / water', 'answers': ['12']} | {'clue': 'Number sent', 'prompt': 'Round2 B / water', 'answers': ['22']} |
| Shake / earth | {'clue': 'Number sent', 'prompt': 'Round1 Shake / earth', 'answers': ['13']} | {'clue': 'Number sent', 'prompt': 'Round2 Shake / earth', 'answers': ['23']} |
Complete program, part 1: state and result decision
Original Paxa core, part 1 of 3
let round = 1
let mine = 0
let theirs = 0
let shown = false
radio.setGroup(27)
basic.showString("R" + round)
function finishRound() {
if (mine != 0 && theirs != 0 && !shown) {
shown = true
if (mine == theirs) {
basic.showString("DRAW")
} else if ((mine == 1 && theirs == 3)
|| (mine == 2 && theirs == 1)
|| (mine == 3 && theirs == 2)) {
basic.showString("WIN")
} else {
basic.showString("LOSE")
}
}
}Complete program, part 2: sending and receiving
Original Paxa core, part 2 of 3
function choose(value: number) {
if (mine == 0 && !shown) {
mine = value
radio.sendNumber(round * 10 + mine)
finishRound()
}
}
radio.onReceivedNumber(function (receivedNumber) {
if (theirs == 0 && !shown) {
if (receivedNumber == round * 10 + 1) {
theirs = 1
} else if (receivedNumber == round * 10 + 2) {
theirs = 2
} else if (receivedNumber == round * 10 + 3) {
theirs = 3
}
finishRound()
}
})Complete program, part 3: inputs and new round
Original Paxa core, part 3 of 3
input.onButtonPressed(Button.A, function () { choose(1) })
input.onButtonPressed(Button.B, function () { choose(2) })
input.onGesture(Gesture.Shake, function () { choose(3) })
input.onButtonPressed(Button.AB, function () {
round += 1
mine = 0
theirs = 0
shown = false
basic.showString("R" + round)
})Trace a received-first round and duplicate protection
| Event in order | New display call |
|---|---|
| Receive 13 before local choice | {'clue': 'WIN or None', 'prompt': 'Received-first step1', 'answers': ['None']} |
| Press A: choose fire, send 11 | {'clue': 'WIN or None', 'prompt': 'Received-first step2', 'answers': ['WIN']} |
| Receive duplicate 13 after result | {'clue': 'WIN or None', 'prompt': 'Received-first step3', 'answers': ['None']} |
| Press B after local choice is locked | {'clue': 'WIN or None', 'prompt': 'Received-first step4', 'answers': ['None']} |
Reset per-round state and reject stale messages
- Increase round by 1
- Set mine to 0
- Set theirs to 0
- Set shown to false
- Display the new round label
Plan real tests for both directions and orderings
A paper model checks the rules and algorithm. Actual supported-environment or device observations are needed for a practical claim; otherwise record Pending. Save each program version and describe the actual contribution of each person or your individual work.
Optional extension: count wins after a complete round works
Original Paxa optional win-counter changes
// After the startup declaration let shown = false:
let wins = 0
// Replace the WIN branch display line with these two:
wins += 1
basic.showString("WIN")
// At the END of the A+B handler, after its round display:
basic.showString("W" + wins)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.

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
- Lesson 1.1: Recall algorithms and representations
- Lesson 1.2: Purpose and conventions of pseudocode
- Lesson 1.3: Input, output and strings
- Lesson 1.4: Identifiers and assignment
- Lesson 1.5: Arithmetic and translation
- Lesson 1.6: Trace and review a sequence
- Lesson 1.7: Conditions and two-way flow
- Lesson 1.8: IF THEN and indentation
- Lesson 1.9: IF THEN ELSE and decision diagrams
- Lesson 1.10: Ordered ELSEIF and fallback ELSE
- Lesson 1.11: Match flowchart and pseudocode branches
- Lesson 1.12: AND, OR and NOT
- Lesson 1.13: Grouping, precedence and review
- Lesson 1.14: Why software searches
- Lesson 1.15: A successful linear search
- Lesson 1.16: An unsuccessful search and termination
- Lesson 1.17: Practise and communicate the search
- Lesson 1.18: Translate conditions into Python
- Lesson 1.19: One-branch IF programs
- Lesson 1.20: Two-way IF ELSE programs
- Lesson 1.21: Ordered ELIF choices
- Lesson 1.22: Ranges and independent decisions
- Lesson 1.23: Boolean operators in Python
- Lesson 1.24: Design and test recommendations
- Lesson 1.25: Trace, debug and reflect
- Lesson 1.26: Choose data types and recognise Boolean literals
- Lesson 1.27: Set and use Boolean flags
- Lesson 1.28: Explain and identify constants
- Lesson 1.29: Express constants in three algorithm forms
- Lesson 1.30: Use a fixed factor in a calculation
- Lesson 1.31: Cast to Boolean and validate an empty response
- Lesson 1.32: Recall calls and trace return values
- Lesson 1.33: Supply parameters and reuse library code
- Lesson 1.34: Choose and import libraries responsibly
- Lesson 1.35: Round with floor and ceiling
- Lesson 1.36: Use pi and investigate another mathematical feature
- Lesson 1.37: Generate random choices within bounds
- Lesson 1.38: Investigate random real values and review library use
- Lesson 1.39: Retrieve test tables and predict selection outcomes
- Lesson 1.40: Decompose everyday problems
- Lesson 1.41: Decompose programs and organise shared work
- Lesson 1.42: Develop through repeated build/test cycles
- Lesson 1.43: Predict and verify algorithm outcomes
- Lesson 1.44: Choose representative and boundary tests
- Lesson 1.45: Build, execute and review a test plan
- Lesson 1.46: Recall physical inputs and compare transmission media
- Lesson 1.47: Configure a radio group and agree a message scheme
- Lesson 1.48: Send and receive numbers and strings
- Lesson 1.49: Trace numeric message sequences
- Lesson 1.50: Transmit text and use received data in conditions
- Lesson 1.51: Diagnose and extend a message protocol
- Lesson 1.52: Review communication and evidence of testing
- Lesson 1.53: Project 1: Adventure story
- Lesson 1.54: Project 2: Fire, Water, Earth
- 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.
Opening your PDF…
Swipe sideways across the worksheet on a small screen, or use “Answer list” for larger controls.
You’ve completed the checked activities.
TAKE YOUR PRACTICE OFFLINE
3. Download the student worksheet
All 12 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
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 12 worksheets
Worksheet 1
- Question 1: When can a device decide a round’s result? after both valid choices are available
Worksheet 2
- Question 2: Fire against Fire Draw
- Question 3: Fire against Water Lose
- Question 4: Fire against Earth Win
- Question 5: Water against Fire Win
- Question 6: Water against Water Draw
- Question 7: Water against Earth Lose
- Question 8: Earth against Fire Lose
- Question 9: Earth against Water Win
- Question 10: Earth against Earth Draw
- Question 11: My device shows WIN in a completed non-draw round. What should the other show? LOSE
Worksheet 3
- Question 12: Round1 A / fire 11
- Question 13: Round2 A / fire 21
- Question 14: Round1 B / water 12
- Question 15: Round2 B / water 22
- Question 16: Round1 Shake / earth 13
- Question 17: Round2 Shake / earth 23
- Question 18: Are the radio group and round identifier the same thing? no, group filters traffic and round labels this game exchange
Worksheet 4
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 5
This page introduces the activity. There are no marked responses on this sheet.
Worksheet 6
- Question 19: What happens if a player tries to change a locked choice in this round? choose ignores it
- Question 20: What must players coordinate before the next round? both advance once to the same round before choosing
Worksheet 7
- Question 21: Received-first step1 None
- Question 22: Received-first step2 WIN
- Question 23: Received-first step3 None
- Question 24: Received-first step4 None
Worksheet 8
- Question 25: In round 2, what numeric payload represents water? 22
- Question 26: In round 2, how does the core handle old payload 13? ignores it as an unrecognised current-round choice
Worksheet 9
- Question 27: What can a paper outcome test certify here? the stated design logic under its assumptions
Worksheet 10
- Question 28: What should a duplicate packet do to an already-counted win? add nothing
- Question 29: Should the ordinary A+B round reset erase the win total? no, this extension keeps it across rounds
Worksheet 11
- Question 30: Agree and explain complete rules and a nine-outcome table. Design each device’s inputs, payloads, received-value comparison and local result output. Use the full three-part core or an equivalent complete design, with a clear reset rule and matching settings. Save complete programs for both devices and a test plan covering ties, every winning case, both viewpoints and relevant event orders. Execute supported practical tests and record actual results or Pending; label paper/model evidence separately. Keep corrections/retests, roles or individual contribution, feedback or Pending and attached evidence. Consistent rules fire>earth, earth>water, water>fire and equal draw, complete nine-outcome table from both viewpoints. Two complete identified source programs (identical supplied core acceptable), matching group27 and round labels, A1/B2/Shake3, payload round*10+choice, receive first recognised current-round choice and decide only when both choices available. Own WIN/opponent LOSE and both DRAW correct, lock choices and avoid duplicate results, reset per-round fields and coordinate both devices. Full saved design/source/test plan and actual/Pending results cover all combinations and relevant ordering/unknown/duplicate cases; paper tests not radio proof. Corrections/retests, contribution/actual feedback and honest limitations retained. Grown-up review; personal evidence is required.
Worksheet 12
- Question 31: Demonstrate a coordinated new round in your design, checking both round labels and cleared choice/result state, and predict an old-round message and unknown payload. Record actual observations or Pending, retaining source and test evidence. After a complete core round works, optionally add a win counter and test a win, loss, draw, duplicate result and another round. Explain which state resets and which total remains, or document a precise extension plan if it is not implemented. Review your contribution, actual feedback or Pending, one remaining communication limit and a next step. Both devices advance once to same round before new choices, reset mine/theirs to0 and shown false, display new round; round2 water22 and old13 ignored by current conditions. Unknown payload no accepted remote choice; no delivery/retry guarantee. Optional counter only after core works, startup0, exactly one increase per completed local win, no increase on loss/draw/duplicate/ignored input, retained across ordinary new round and resets on program restart. Complete source/change plan and predicted/actual-or-Pending evidence, no invented device or peer work. Discuss meaningful finite test limits, packet loss/order or setup concern with actual contribution, feedback/Pending and useful next step. Grown-up review; personal evidence is required.
Curriculum & workbook reference
- Cambridge Lower Secondary Computing Learner’s Book 8 — page 193
- PaxaKids Grade 8 Computing Lesson 1.54: Project 2: Fire, Water, Earth — pages 1–12
Computing for your homeschool day
Explore Project 2: Fire, Water, Earth 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.
