
The Push Thing chip is a versatile tool used to store information about objects that your ChipWit senses, interacts with, or encounters during its mission. When your ChipWit detects something in the environment, the Push Thing chip stores that information onto a stack for later use in decision-making processes.
Specifications #
- Argument: Pie, Coffee, Electrocrab, Bouncer, Bomb, Oil, Memory Disk, Wall, Floor, Door
- Creates a True or False Branch?: No, it does not create a T/F branch
- Number of Cycles Used: 1
- Fuel: 1
Push Thing commands the ChipWit to put a specified Thing into the Thing Slack. This is the way the ChipWit makes the list of Things that constitutes the Thing Stack.
Why the Push Thing Chip Matters #
- Storing Information: The Push Thing chip saves data about objects, such as Pies, Walls, or Electrocrabs, that the ChipWit can reference later. This helps your ChipWit make more complex decisions based on what it has already encountered.
- Stack Operations: It works alongside other stack-based chips like Pop or If Thing Equals, making it easier to manage multiple objects or conditions at once. Your ChipWit can “push” an object onto the stack and “pop” it off when needed.
- Dynamic Programming: It allows your ChipWit to handle multiple interactions with different objects, creating more dynamic behavior. For example, your ChipWit can push the nearest Pie onto the stack, then later decide what to do with that information.
The Push Thing chip gives your ChipWit the ability to remember and use information about objects it encounters, adding depth and complexity to your programming.
History #
“Push Thing” as it appears in various historic incarnations of ChipWits!
COMMODORE 64:
MANUAL:
“An argument is saved or “pushed” on the top of a Stack using the Save Thing Operator. When an argument is placed on the top of any Stack, the arguments already in that Stack (if any) are pushed down, and the new argument will then occupy the top position.”
APPLE II:
MANUAL:
“SAVE THING commands the ChipWit to put a specified Thing into the Thing Stack. This is the way the ChipWit makes the list of Things that constitutes the Thing Stack. Uses of the Thing Stack are discussed in Chapter II.
The Arguments for SAVE THING are the Things that are the Arguments for LOOK.”
MAC:
MANUAL:
“SAVE THING commands the ChipWit to put a specified Thing into the Thing Slack. This is the way the ChipWit makes the list of Things that constitutes the Thing Stack. Uses of the Thing Stack are discussed in Chapter II.”
CHIPWITS II (WIN 98):