Table of Contents
The Increment chip adds 1 to a specified memory cell, making it a useful tool for counting or tracking progress, such as how many items your ChipWit has collected.
Specifications #
- Arguments: None
- Creates a True or False Branch?: No, Increment does not create a True/False branch.
- Number of Cycles Used: 1
- Fuel: 1
Example of Use #
Let’s say you want your ChipWit to count how many pies it picks up while navigating a room:
- Set Up a Number Register:
- First, use the Memory Stack to hold the count of Pies. Initialize the Memory Stack to 0 by using a chip like Push Number to start the count.
- Use the Increment Chip:
- Each time your ChipWit picks up a Pie, place an Increment chip after the Pickup chip to add 1 to the Memory Stack.
- Check or Use the Count:
- As your ChipWit navigates and picks up pies, the Increment chip tracks how many pies have been collected. Later in the program, you can use an If Number Equals chip to compare the count with a target number (e.g., 5 pies). If the count reaches the target, the ChipWit can move to a new location or complete the mission.
The Increment chip helps keep track of repetitive actions and adds flexibility to your ChipWit’s programming.
History #
“Increment” as it appears in various historic incarnations of ChipWits!
COMMODORE 64:
Manual:
APPLE II:
Manual:
CHIPWITS II (WINDOWS 95):
Leave a Reply