CREATIVE NOTES / CODING & PLAYFUL LEARNING
Why Turn Earlier When Spirit Snake Boosts?
A pearl lies ahead, close to the edge of the bamboo grove. Once you have enough length, holding boost can get you there sooner, but the snake may travel farther than expected before it turns. Spirit Snake: Bamboo Arena is now linked from the portfolio of Hong Kong primary pupil Zhan Yining, also known as Monica. This editorial note examines the existing game and how its rules bring speed, length and steering into one decision.
Start with one second of movement
Compare two straight runs without collisions. One stays at normal speed; the other has enough length to boost for the whole second. The player moves at 108 map units per simulated second normally, or 192 while boosting. Over one simulated second, 192 − 108 = 84 extra units. These are distances in the game world, rather than screen pixels or a guarantee about wall-clock time when a device stutters.
Some length can be spent, with a floor
The interface displays an internal value as “Your length”. It starts at 100 and grows when the snake eats pearls. Boost works only above 100. Continuous boost uses 5 internal units per simulated second, with a floor at 100. Starting at 108, one simulated second of uninterrupted boost with no pearls eaten leaves 103. Holding the control cannot spend it down to 99 or keep the boost active at 100. The value is not a length in centimetres; the engine also converts it into the number of points used to draw the body.
A new direction still takes time
A mouse, direction key or mobile joystick sets the desired heading. Each simulation step limits how much the head can turn, and boosting does not raise that limit. While the head takes the same amount of time to turn through the same angle, it covers a longer path at boost speed. Near an edge, try steering earlier or releasing boost first, and notice where the curve begins.
Read the route before choosing to boost
The benefit and cost show up in different places. In open space, the extra distance may get you to a pearl sooner. Near an edge or another snake, room to turn may matter more. Ask two separate questions: “How much farther can I go?” and “Will there still be room to turn when I get there?” This is a way to read the rules, rather than a report of a match result.
Try turning one beat earlier on paper
You can do this without starting a round. On squared paper, mark a start and draw an edge ahead. On the first beat, both routes go straight: three squares for the normal route and five for the fast one. On each of the next three beats, turn both routes a little to the left by the same angle, then move by their respective step lengths. Three and five are paper-model step sizes, not the game’s speed settings. Now sketch the fast route again from the start, but begin turning on the first beat and keep the other conditions the same. Compare the two fast routes and look for stretches with more room between the route and the edge.
Two more questions
Why does holding boost do nothing at the start?
The length value starts at 100. Boost is enabled only when the internal value is above 100, so the snake must grow by eating pearls first.
Can I read the speed from the distance I see on my phone?
Not directly. The speed is expressed in map units per simulated second. Zoom and the device display affect how many screen pixels represent the same map distance.
Explore the project
Prepared by the portfolio editorial team from the project rules and existing code, with AI-assisted writing and translation. Calculations and suggested activities are not Monica’s quotations or personal records. Portfolio inclusion does not mean she independently completed every design or line of code.