VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

How Singapore Education and SEC FullSBB G1 Syllabus Works | Why Does My Child Get the Same Score and Random Number When Restarting a Scratch Game?

Secondary 2 computing foundations with a laptop, visual programming, spreadsheets and safe digital literacy

If your child’s Scratch game starts with an old score or a target keeps appearing in the same position, check two separate ideas: initialising variables and generating random numbers. The 2027 SEC G1 Computing K127 syllabus includes creating, naming, initialising and updating variables, as well as generating and using random numbers. A score variable stores a value that changes during play. A random-number block supplies a value from a specified range. Resetting the score does not automatically randomise a target, and choosing a new random target does not automatically reset the score.

For Singapore parents, draw an original star-catching game on paper. When the green flag is clicked, set score to 0. Choose a target location from an appropriate range. After a successful catch, change score by 1, then choose another target position if the game requires it. Ask which actions run at startup and which repeat during gameplay. The student should eventually build and debug a separate authorised practice project independently, not have the parent complete school-assessed code.

  • Direct answer: Initialise score deliberately at the beginning; select random values when a new value is actually needed.
  • Official 2027 G1 subject: Computing K127, Module 7.1, including variable outcomes 7.1.5–7.1.7 and random numbers 7.1.12.
  • Original model: Set score to zero at start, increase it after valid catches, and select a new target position at the appropriate event.
  • Integer range: In Scratch, pick random 1 to 6 can return integers 1, 2, 3, 4, 5 or 6, including both endpoints.
  • Common mistake: A random value can repeat; it is not guaranteed to show every possibility before a repeat.
  • First home task: Sketch Start → Initialise → Pick Target → Detect Catch → Update Score → Repeat.

What the 2027 Computing K127 syllabus requires

The official SEAB G1 Computing K127 syllabus for 2027 covers Computer Fundamentals, Networking, Impact of Computing, Document Processing, Spreadsheets, Media Software and Programming. Module 7 introduces visual programming and game-related computational thinking.

The specific skills include creating variables, initialising and updating stored values, using random numbers, basic loops, conditions, mathematical operators, sprites, events, and identifying and correcting errors. Outcome 7.1.8 restricts the basic if/if-else requirement to non-nested conditions, so children do not need an advanced professional game engine to understand this concept.

K127 Paper 1 is a 1 hour 15 minute e-Examination worth 40%, while Paper 2 is a two-hour supervised practical worth 60%. The original star game in this guide is a learning illustration, not an official SEC task or prediction of national practical content.

What is a variable?

A variable stores a value for use by the program. A score may be zero when play begins, then one after a catch, then two after another successful action. A different variable might store the x-coordinate of a star on the stage.

A variable does not merely show a decorative label. The stored value can be displayed, updated, used in calculations or checked in a condition. The student’s job is to know what each named variable represents.

Ask the child to explain score and targetX separately. They should not treat the score as a target position or assume the two values must change together.

Initialise a variable before relying on it

Initialisation sets a clear starting value. A typical Scratch start sequence is when green flag clicked → set score to 0. This tells the project what the new game’s score should be.

If the reset step is missing, a previously stored score may remain when a project is rerun in some circumstances. A child might assume the game awarded extra points even though the value was simply not initialised.

The green flag begins scripts; it does not guarantee that every custom game variable automatically starts at the intended value. Teach explicit setup.

Set and change have different meanings

A set operation assigns a chosen value. A change operation modifies what is already stored. If score is 4, set score to 1 makes it 1, whereas change score by 1 makes it 5.

This is why using set score to 1 after every catch can leave a game apparently stuck at a score of 1. The block is executing, but its meaning differs from incrementing.

For the fictional game, use set to establish the starting score and change to add a point when the game’s rules say the player succeeded.

Random numbers are not scores by default

A random-number expression supplies a value from a chosen interval. It may be appropriate for a target location, a fictional dice result or another source of intended variation.

If the child’s game is supposed to count successful catches, setting score to a random number at startup would give the player arbitrary points. That is a design error, not evidence of unpredictability as a benefit.

Ask the child what a variable means before deciding how its value should be created or updated. This small habit prevents many logical mistakes.

Integer endpoints are included in Scratch

In Scratch, pick random 1 to 6 with integer bounds can return any integer from 1 through 6, including 1 and 6. A child may incorrectly exclude 6 because another programming language has a different range convention.

The correct rule belongs to the actual language and block used. There is no universal programming rule that every random generator excludes its upper bound.

Make an original practice question: Which values are possible? The answers are 1, 2, 3, 4, 5 and 6; not zero or seven.

Random values may repeat

Imagine the results 4, 4, 1, 6, 4, 2 from six separate selections. That is possible. A random selection does not remove a value from later choices.

A learner who expects each number to appear exactly once is thinking of selecting without replacement or a shuffle through a complete set. Scratch’s basic random-number reporter does not impose that rule.

A repeated value alone does not prove the random block is broken. Check its range and whether it is executed again when the program needs another selection.

When the random choice happens matters

A random block may run once when the green flag is clicked. The target starts in one chosen location and never moves again because no later instruction changes the position.

If the game requires a new position after each catch, the random choice must run after each relevant event or at a suitable point in the repeated gameplay. The block can be correct but misplaced.

Ask the child when the next value is needed and identify the script that runs at that moment. This is an event-sequence decision rather than a mathematical one.

An original coordinate example

Scratch uses x and y coordinates to locate sprites on a stage. The standard stage is centred at (0, 0), with approximate boundaries at x = −240 and 240 and y = −180 and 180.

For a fictional small star, a practice x-position might be randomly selected from −140 to 140. The choice of range must also consider the star’s size and other game elements. A coordinate can be inside the nominal stage range while part of a very large sprite extends off-screen.

This is an illustration, not a guaranteed fit for every Scratch project. Ask the teacher about the correct stage and sprite settings in the authorised lab environment.

A six-step star-catching storyboard

Write six invented steps: Start game, Set score to zero, Choose a target position, Wait for an allowed action, If a catch succeeds, increase score, Choose another position or finish.

Ask which steps belong to a fresh-game setup and which belong to every new round. If the score is reset inside the repeating action, the player may never accumulate points.

This is the sort of computational thinking the K127 syllabus supports. The student should explain the sequence before arranging blocks on the screen.

The green flag can trigger several scripts

More than one Scratch script can begin in response to a green-flag event, and the 2027 syllabus recognises that multiple sets of code can execute at the same time.

If one script resets score while another independently awards points immediately, the visible value may surprise the learner. The program must establish any important ordering deliberately rather than assume different scripts always run in a fixed convenient sequence.

Draw arrows between start, setup and gameplay. This exposes a possible logic problem without rewriting the child’s assessed project.

Use a condition only for a valid catch

A game might update score when two sprites touch, but only if the player satisfies its stated rules. A condition checks whether the success requirement is met. The score should change at the intended event, not on every iteration simply because a loop is running.

The national syllabus includes basic conditions and sprite-contact detection. Parents can explain a fictional rule on paper without creating an elaborate nested structure.

Ask the child to predict what happens after a valid catch, a miss and a repeated contact. The intended answers depend on the game’s design and how the code checks the condition.

Broadcast and random are not interchangeable

A broadcast message can trigger another script to start, while a random-number expression creates a value. A game might broadcast start-round, then a receiving script selects a new position. Both operations are useful, but they have different jobs.

A learner who uses a speech bubble instead of a broadcast may see text without triggering another sprite. A learner who broadcasts correctly but never generates a new target location may still see the target remain fixed.

Use the separate eduKateSG Scratch broadcast guide when the problem involves events rather than randomness.

Test one mechanism at a time

Begin by checking whether the green flag resets score to zero. Next test one successful catch and see whether the score changes by exactly one. Then check whether the random value is inside the intended interval across multiple tests.

Do not change many scripts at once. If several edits occur together and the game suddenly works, the learner may not know which mistake they corrected.

Debugging should connect expected result, observed result, possible cause, one change and retest. That method transfers to spreadsheets and other software tasks.

Random sampling is not a guarantee of equal frequencies

A child may test pick random 1 to 6 ten times and see six appear only once, or not at all. A small sample does not prove a defect or show that the block deliberately avoids certain values.

What the basic range specification tells us is which values may occur. It does not require all values to occur in a fixed number of trials or a predictable order.

Teach pupils not to claim a system is fair or unfair from one very short observation without suitable evidence and a clearly defined test.

Why reset and update mistakes can look similar

A score that never rises above one could result from setting it back to one after every success. A score that rises but begins above zero might result from failing to reset it. Both produce surprising results, but require different corrections.

Ask the child to trace the variable’s value through three points: game start, first catch and second catch. If the expected sequence is 0 → 1 → 2, compare the program’s actual values with that sequence.

This is often clearer than watching the screen repeatedly and guessing which block is wrong.

A five-step home programming routine

  1. Name the stored values. Explain the purpose of score and target position.
  2. Initialise on a clear start event. Give the new game its intended state.
  3. Choose and update values appropriately. Use set, change and pick random for their distinct roles.
  4. Place actions at the correct moment. Separate startup, repeated gameplay and ending.
  5. Test independently. Check reset, one catch, a second catch and a new random target.

This is a parent practice scaffold, not an official marking rubric or a substitute for the student’s own lab work.

Common mistakes and focused corrections

  • Score keeps its old value: Add an intended startup reset.
  • Score becomes one after every catch: Use an increment rather than repeatedly assigning one.
  • Target remains in one place: Check whether the random choice executes each new round.
  • Six is assumed excluded: Review Scratch’s integer-bound interval.
  • Random repeats are called errors: Explain independent selections.
  • Score is randomised instead of target position: Clarify the role of each variable.
  • Target appears outside the intended play area: Consider coordinates and sprite dimensions.
  • Multiple green-flag scripts produce surprising behaviour: Examine event coordination.

One specific coding misconception can be corrected without assigning a large copied game project. The teacher can identify whether the barrier is logic, interface familiarity or reading the task.

Fourteen-day parent practice plan

  • Days 1–2: Draw a variable box and describe what score stores.
  • Days 3–4: Compare set score to zero and change score by one.
  • Days 5–6: List possible values from pick random 1 to 6.
  • Days 7–8: Explain why some random values may repeat.
  • Days 9–10: Choose a fictional valid target-coordinate interval.
  • Days 11–12: Trace the six-step game storyboard and its conditions.
  • Days 13–14: Explain and debug a fresh original sequence independently.

Short paper activities can come before practical Scratch use. Do not use real student data or copyrighted assets without permission in an online practice project.

Full SBB and authentic work

Posting Group 1 is used for secondary admission, while G1 Computing K127 is a subject level offered by participating schools. A student might understand Scratch sprites but be uncertain about variables or event sequences. That is a specific skill gap, not a fixed judgement of computing ability.

The 2027 syllabus applies to that year’s graduating SEC cohort. Younger learners should use the syllabus for their eventual examination year. Parents may explain the logic in unrelated practice but must not write or edit the candidate’s assessed program.

Frequently asked questions

Does the K127 syllabus explicitly assess random numbers?

Yes. Outcome 7.1.12 includes generating and using random numbers in programs.

Does pick random 1 to 6 include both endpoints?

Yes, with integer bounds in Scratch it can return all integers from 1 through 6.

Is a repeated random number automatically a bug?

No. Repeated selections can return the same value.

Should a score be reset with set or change?

For a new game’s intended zero score, set score to 0 is appropriate. Change score by 1 increments the current value after a valid success.

Official and eduKateSG sources

Reviewed 1 December 2026 against SEAB 2027 K127 programming outcomes. All games and random-number examples are original, not SEC assessment code.