REGISTERS


Using the Registers #

Any command that stores, compares, or processes a number can use one of the registers as an argument instead. Each register has a specific purpose in tracking your ChipWit’s status during missions.


Damage Register #

  • Purpose: This register helps you keep track of your ChipWit’s health.
  • Usage: If your ChipWit takes damage from running into walls, falling off pathways, or being zapped by enemies like Electrocrabs, the Damage Register will increase.
  • Monitoring the Damage Register allows your program to react when the ChipWit is at risk of being destroyed. You can use it to trigger defensive actions or navigate away from hazards before it’s too late.


Fuel Register #

  • Purpose: The Fuel Register tracks your ChipWit’s energy levels.
  • Usage: As your ChipWit moves, turns, and performs tasks, it consumes fuel. You can program your ChipWit to check the Fuel Register to ensure it has enough energy to complete its mission.
  • Running out of fuel will cause your ChipWit to stop, so keeping an eye on the Fuel Register helps you optimize movement and conserve energy for longer, more complex missions.


Range Register #

  • Purpose: This register tracks the distance your ChipWit can sense objects, enemies, or hazards.
  • Usage: The Range Register is particularly important in missions like Boomtown, where you need to detect bombs. By reading the Range Register, you can program your ChipWit to respond based on how far away hazards or targets are.
  • Understanding and using the Range Register gives your ChipWit the ability to detect threats early, giving you more time to plan and react effectively.

By utilizing these registers, you can enhance your ChipWit’s ability to track its own status, make decisions based on real-time conditions, and successfully complete complex missions!

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *