Home
Explore games
Help
Log in
Playfic is now in read-only mode.
You can still play existing games, but new signups and game editing is disabled.
Read the announcement.
Log in
Username
Password (
Forgot it?
)
Login
Items of the Same Kind
by
JORGE
Played 1,638 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
A pink jellybean is a kind of thing. The printed name of a pink jellybean is usually "pink jellybean". A pink jellybean is always edible. Understand "pink jellybean" and "pink" and "jellybean" as a pink jellybean. A purple jellybean is a kind of thing. The printed name of a purple jellybean is usually "purple jellybean". A purple jellybean is always edible. Understand "purple jellybean" and "purple" and "jellybean" as a purple jellybean. Alleating is an action applying to nothing. Understand "eat all" as alleating. Carry out alleating: while the player can see a purple jellybean begin; say "You eat the purple jellybean."; try eating the noun; end while; while the player can see a pink jellybean begin; say "You eat the pink jellybean."; try eating the noun; end while. The jelly1 is a pink jellybean. The jelly2 is a purple jellybean. The jelly3 is a pink jellybean. The jelly4 is a purple jellybean. The jelly5 is a pink jellybean. The jelly6 is a purple jellybean. The jelly7 is a pink jellybean. The jelly8 is a purple jellybean. The jelly9 is a pink jellybean. The jelly10 is a purple jellybean. After eating a pink jellybean: say "This is a sugary, delicious jelly bean. Mmmm."; now the noun is off-stage. Jellybeans is a number variable. Jellybeans is 10. After eating a purple jellybean: say "This is a sugary, delicious jelly bean. Mmmm."; now the noun is off-stage. The Jellybean Dispenser is a room. "Flip the white switch to get JELLYBEANS!" The white switch is a device in the Jellybean. Carry out switching on the white switch: let color be a random number from 1 to 2; if color is 1 and Jellybeans is greater than 0 begin; say "You switch the switch. A pink jellybean pops out of the dispenser."; now a random pink jellybean is in the Jellybean Dispenser; now the white switch is switched off; end if; if color is 2 and Jellybeans is greater than 0 begin; say "You switch the switch. A purple jellybeam pops out of the dispenser."; now a random purple jellybean is in the Jellybean Dispenser; now the white switch is switched off; end if; if Jellybeans is less than 1 begin; say "You switch the switch, but there are no more jellybeans left."; now the white switch is switched off; end if.