Home
Start a new game
Explore games
Help
Log in or sign up
Log in
Username
Password (
Forgot it?
)
×
New to Playfic?
Full Name
Email
Username
Password
Password (confirm)
Are you sure about this?
The Tearoom
by
Tamsyn Michael
Played 3,336 times
View game source
(spoilers!)
Download the
.z8 file
Source Code
"Tea Room" by Theo Michael The story headline is "Inaugural Weekly Coding Task: A Cup of Tea". The story description is "Thanks go to the members of the IF Forum, especially climbingstars, for all their help." Use the serial comma. The maximum score is 3. When play begins: say "You are beginning to get a headache. If you continue much longer you will lose control of your powers and your body servent can tell you how dangerous that is. Or he could have if he'd survived the lesson." Part 1 - Liquids Chapter 1 - Volumes and Fluid Containers A volume is a kind of value. 1 scoop (singular) specifies a volume. 2 scoops (plural) specifies a volume. A fluid container is a kind of container. A fluid container has a volume called a fluid capacity. A fluid container has a volume called current volume. The fluid capacity of a fluid container is usually 1 scoop. The current volume of a fluid container is usually 0 scoops. Liquid is a kind of value. The liquids are water, and tea. A fluid container has a liquid. After examining a fluid container: if the noun is empty, say "[The noun] is bone dry."; otherwise say "[The noun] contains [current volume of the noun] of [liquid of the noun]." [Before printing the name of a fluid container (called the target) while not drinking: if the target is empty: say "empty "; omit contents in listing. ] After printing the name of a fluid container (called the target) while not examining: unless the target is empty: say " of [liquid of the target]"; omit contents in listing. Chapter 2 - Liquid Actions [Instead of inserting something into a fluid container that is not a fluid container: say "[The second noun] is not a storage ????."] Section 2.1 - Pour/Fill/Empty Definition: a fluid container is empty if the current volume of it is 0 scoops. Definition: a fluid container is full if the current volume of it is the fluid capacity of it. Understand "drink from [fluid container]" as drinking. Instead of drinking a fluid container: if the noun is empty: say "There is no more [liquid of the noun] within." instead; otherwise: decrease the current volume of the noun by 1 scoop; if the current volume of the noun is 1 scoop, now the current volume of the noun is 1 scoop; say "You take a sip of [the liquid of the noun][if the noun is empty], leaving [the noun] empty[end if]." Check drinking the cup: if the cup is empty, say "But you haven't made the tea yet." instead; if the green powder is in the cup, say "You need to whisk the tea into a froth." instead; if the cup is full and the green powder is not in the cup, say "You haven't added the powdered tea.". Understand the command "fill" as something new. Understand "pour [fluid container] in/into/on/onto [fluid container]" as pouring it into. Understand "empty [fluid container] into [fluid container]" as pouring it into. Understand "fill [fluid container] with/from [fluid container]" as pouring it into (with nouns reversed). Understand "pour [something] in/into/on/onto [something]" as pouring it into. Understand "empty [something] into [something]" as pouring it into. Understand "fill [something] with/from [something]" as pouring it into (with nouns reversed). Pouring it into is an action applying to two things. Does the player mean pouring the spring into the teapot: it is very likely. Does the player mean pouring the teapot into the cup: it is likely. Check pouring it into: if the noun is not a fluid container, say "You can't pour [the noun]." instead; if the second noun is not a fluid container, say "You can't pour liquids into [the second noun]." instead; if the noun is the second noun, say "You can hardly pour [the noun] into itself." instead; if the liquid of the noun is not the liquid of the second noun: if the second noun is empty, now the liquid of the second noun is the liquid of the noun; otherwise say "Mixing [the liquid of the noun] with [the liquid of the second noun] would give unsavory results." instead; if the noun is empty, say "No more [liquid of the noun] remains in [the noun]." instead; if the second noun is full, say "[The second noun] cannot contain any more than it already holds." instead. Carry out pouring it into: let available capacity be the fluid capacity of the second noun minus the current volume of the second noun; if the available capacity is greater than the current volume of the noun, now the available capacity is the current volume of the noun; increase the current volume of the second noun by available capacity; decrease the current volume of the noun by available capacity. Report pouring it into: say "[if the noun is empty][The noun] is now empty;[otherwise][The noun] now contains [current volume of the noun] of [liquid of the noun]; [end if]"; say "[the second noun] contains [current volume of the second noun] of [liquid of the second noun][if the second noun is full], and is now full[end if]." Understand the liquid property as describing a fluid container. Understand "of" as a fluid container. Section 2.2 - Whisking Check whisking something with something: if the player is not carrying the bamboowhisk, say "You don't have the whisk." instead; if the second noun is not the bamboowhisk, say "Only the whisk can whisk things." instead; if the noun is the bamboowhisk, say "How...what...that makes no sense." instead; if the noun is the player, say "You prefer to inflict pain on others." instead; if the noun is not the cup, say "You can only whisk the cup." instead. Check whisking something with the bamboowhisk: if the noun is the green powder: try whisking the cup with the bamboowhisk instead. Definition: a thing is notwhisk if it is not the bamboowhisk. Whisking it with is an action applying to two things. Understand "whisk [something notwhisk] with [bamboowhisk]" as whisking it with. Understand "whisk [something] with [something]" as whisking it with. Check whisking cup with bamboowhisk: if the player is not holding the bamboowhisk, say "You need the whisk for that." instead; if the cup is not full, say "First you need to add the water." instead; if the green powder is not in the cup, say "You need to add the powdered tea first." instead; move the frothycup to the holder of the cup; remove the cup from play; remove the green powder from play; say "You whip the tea to a fine froth.". Section 2.3 - Enter/Swim/Bathe Swimming is an action applying to nothing. Understand "swim" or "bathe" or "wash" as swimming. Instead of swimming, try entering the spring. Instead of entering the spring, say "The cold spring water is hardly going relax you." Instead of swimming when the location of the player is the tearoom, say "There is nothing large enough." Section 3 - Liquid Source A liquid source is a kind of fluid container. A liquid source has a liquid. A liquid source is usually scenery. The fluid capacity of a liquid source is usually 3000 scoops. The current volume of a liquid source is usually 3000 scoops. Instead of examining a liquid source: say "[The noun] is full of [liquid of the noun]." Carry out pouring a liquid source into something: now the current volume of the noun is 3000 scoops. After pouring a liquid source into a fluid container: say "You fill [the second noun] up with [liquid of the noun] from [the noun]." Instead of pouring a fluid container into a liquid source: if the noun is empty, say "[The noun] is already empty." instead; now the current volume of the noun is 0 scoops; say "You dump out [the noun] into [the second noun]." Part 2 - Heat Heat is a kind of value. The heats are cold, cool, warm, hot, and boiling. Everything has a heat. The heat of a thing is usually cool. The heat of the brazier is hot. A liquid has a heat. Every turn when the turn count is odd: if the teapot is on the brazier: now the heat of the liquid of the teapot is the heat after the heat of the liquid of the teapot; if the heat of the teapot is not boiling, now the heat of the teapot is the heat after the heat of the teapot. [To decide what heat is the heat of (FC - a fluid container): decide on the heat of the liquid of FC.] [Rule for printing the name of the water: say "some [the heat of the noun] water".] Every turn: If the heat of the teapot is boiling and the teapot is on the brazier: say "Steam rises from the teapot and the water bubbles."; Instead of touching something when the heat of the noun is boiling: say "You would burn yourself." Instead of touching something when the heat of the noun is hot: say "You would burn yourself." Section 2 - Barbarian Magic Understand "xyzzy" or "say xyzzy" or "cast xyzzy" or "plover" or "say plover" or "cast plover" or "plugh" or "say plugh" or "cast plugh" as casting xyzzy. Casting xyzzy is an action applying to nothing. Instead of casting xyzzy: say "You have heard the barbarians have magic, and even learned some of their words, but these magics are weak compared to the magic of your ancestors." Understand "cast magic" or "use power" or "use magic" or "cast power" or "cast powers" or "cast spell" as casting magic. Casting magic is an action applying to nothing. Instead of casting magic: say "You mind is not yet composed. The consequences could be disasterous." Understand the command "throw" as something new. Throwing is an action applying to one thing. Instead of throwing something: try taking the noun; say "There will be destruction, just not here. Not now. Besides, you're hardly going to start with [the noun]." Understand the command "break" as something new. Breaking is an action applying to one thing. Instead of breaking something: say "There will be destruction, just not here. Not now. Besides, you're hardly going to start with [the noun]." Understand the command "hit" as something new. Hitting is an action applying to one thing. Instead of hitting something: say "There will be destruction, just not here. Not now. Besides, you're hardly going to start with [the noun]." Understand the command "destroy" as something new. Destroying is an action applying to one thing. Instead of destroying something, say "There will be destruction, just not here. Not now. Besides, you're hardly going to start with [the noun]." Understand "throw [something]" as throwing. Understand "hit [something]" or "break [something]" or "destroy [something]" as breaking. Part 3 - Places The tearoom is a room. The printed name of the tearoom is "The Tea Room". The description of the tearoom is "A large bare space, floored in tatami. The only features are the niche behind you and the table and brazier in front. There is a sliding screen door to the east and an opening to the north." [The waterroom is a room. The printed name of the waterroom is "The Water Room". The waterroom is northeast of the tearoom. The tearoom is southwest of the waterroom. In the waterroom is a pot. The pot is a liquid source. The description of the pot is "pot.". The liquid of the pot is tea.] The house is north of the teahouse. The printed name of the house is "The House". Instead of listening when the player is in the garden, say "You hear the light trickle of water from the spring." Instead of smelling when the player is in the garden, say "You smell the soft scent of plum blossom undercut the smell of dark earth. There is just a hint of burning in the air." Instead of listening when the player is in the tearoom, say "You hear the sound of water from the garden." Instead of smelling when the player is in the tearoom ,say "The room smells of freshly laid tatami." The screen door is east of the tearoom and west of garden. The screen door is a door. The screen door is scenery. "A black lacquered frame backed by rice paper,lit golden by the sun outside." Understand "rice paper" as the screen door. Instead of going through the closed screen door: say "The paper screen is shut: you'd rip it." The printed name of the garden is "The Garden". The description of the garden is "Beautiful and well formed the path runs northwest, over the trickling creek. The source of the creek is a spring, from which the water wells slowly." Instead of going northwest when the location is the garden, say "It is not yet time for you to rejoin the world." Instead of going north when the location is the tearoom, say "To return to your work while so tightly wound would be an invitation to disaster." Instead of attacking the closed screen door, say "Good craftsmen are hard to find. Besides, it is much safer to keep outsiders from visiting the castle at this late stage." Understand "rip [something]" or "tear [something]" or "shred [something]" as attacking. Part 4 - Things Chapter 1 - Brazier In The tearoom is a lacquered table. The brazier is on the lacquered table. The description of the lacquered table is "A black lacquered table. Set into one end is a ring of white ceramic inside which sits the brazier." The description of the brazier is "A black iron ring filled with glowing coals." Understand "glowing" and "coals" and "stove" as brazier. The brazier is a supporter. Instead of pushing, pulling, turning, tasting, or touching brazier, say "You would burn yourself." Instead of pouring something into the brazier: now the current volume of the noun is 0 scoops; say "Steam rises, obscuring the brazier, but you can hear the clicking of the hot iron cooling quickly. When the steam clears you see that the brazier has warped."; end the story saying "Your tea remains unmade.". Instead of putting something on the brazier when the noun is not the teapot, say "There will be destruction, just not here. Not now. And you're hardly going to start with [the noun].". Check putting the teapot on the brazier: if the teapot is empty, say "There is no point putting an empty teapot on the stove." instead; if the heat of the liquid of the teapot is boiling, say "the water has already boiled." instead. Chapter 2 - Other Things Section 1 - The Teapot The teapot is on the lacquered table. The teapot is an open unopenable fluid container. The fluid capacity of the teapot is 4 scoops. The description of the teapot is "The weight and texture of cast iron but instead of black it is burnt orange. This is one of your more recent experiments in changing the nature of metals. The metal of the handle is a darker orange, and the wood of the handle is pale blue." Understand "orange" or "handle" as the teapot. Instead of touching the teapot, say "It feels rough and [the heat of the noun] under your fingers." Section 2 - The Cups The cup is on the lacquered table. The cup is an open unopenable fluid container. The description of the cup is "Centuries old, a haze of fine cracks line the ceramic." Check inserting something into the cup: if the noun is not the green powder, say "The cup is for making tea." instead. Check inserting something that is not the green powder into a fluid container: say "There really is no need." instead. Check inserting the green powder into the cup: if the cup is not full: say "you need to add the water first." instead; say "You sprinkle the green powder on the surface of the water.". Check pouring something into the cup: if the heat of the liquid of the noun is not boiling: say "The water needs to be much hotter to make tea." instead; otherwise: continue the action. Instead of touching the cup: if the noun is empty: say "You run your fingers over the surface, feeling each crack."; otherwise: say "Warm beneath your fingers.". Check taking the green powder: if the green powder is in the cup, say "The powder is too soggy now." instead. The description of the frothycup is "The tea is made. Steam curls off the deep green surface." The printed name of the frothycup is the "cup of tea." Understand "tea" or "cup" as the frothycup. Instead of smelling the frothycup, say "Earthy and astringent." Check drinking the frothycup: if the branch is not in the vase: increase the score by 2; say "You turn the cup three times, and drink, relaxing as you do. But something is missing. Your eyes stray to the empty vase."; otherwise: increase the score by 3; say "You turn the cup three times, winding off your thoughts and replacing them with calm."; end the game saying "You are ready to continue." Instead of touching the frothycup, say "Warm beneath your fingers.". Instead of pouring the frothycup into the brazier: say "Steam rises, obscuring the brazier, but you can hear the clicking of the hot iron cooling quickly. When the steam clears you see that the brazier has warped."; end the story saying "Your tea remains unmade.". Section 3 - The Niche There is a niche in the tearoom. The description of the niche is "A rectangular niche in the wall paneled in pale wood." The niche is an open unopenable container. The niche is fixed in place. There is a vase in the niche. The description of the vase is "Unlike the rest of the room the vase is unrefined. You can see indentations underneath the glaze from a child's small hands." Understand "glaze" and "indentations" and "unrefined" and "hands" as the vase. The vase is a fluid container. Instead of taking the vase, say "It belongs in the niche, though it will look better once the flowers are arranged." Instead of examining, taking, or touching the child, say "There is no child here. Nor has there been for quite some time." The child is a thing. There is a scroll in the niche. The description of the scroll is "This is the scroll displayed during the spring. The crooked black branches contrast with the pale blue petals." Instead of taking the scroll, say "It is not yet the season to change the scroll." Section 4 - Ai Instead of smelling the burnt patch, say "It smells strongly of smoke." Instead of taking the burnt patch, say "You have already collected as much as you could of his remains." There is a burnt patch in the garden. The description of the burnt patch is "If you didn't know it was here you might have missed it. This patch of darker earth is all that remains of your servent, Ai." Understand "darker" and "smoke" as the burnt patch. Section 5 - The Lacquered Box and Its Contents The green powder is in the blue lacquered box. The blue lacquered box is a closed openable container. The blue lacquered box is on the lacquered table. The description of the blue lacquered box is "Changing the colour of the lacquer was delicate work. You ruined many plates before perfecting the technique." The description of the green powder is "The tea is a finely ground powder the green of new growth." Understand "tea" or "powdered" as the green powder. Instead of eating the green powder: try tasting the green powder instead. Instead of smelling the green powder, say "The acrid tang makes your mouth water." Instead of tasting the green powder, say "You sprinkle some tea on your tongue, it fizzes and the acrid taste makes your eyes water.". The indefinite article of the green powder is "some". Check inserting the green powder into something: if the second noun is not the cup, say "The tea goes in the cup." instead. Check inserting the green powder into the cup: if the second noun is not full, say "It is best to add the water first." instead. Instead of inserting the green powder into the teapot: say "You only need to make one cup of tea." Instead of pouring the green powder into something, try inserting the green powder into the second noun instead. Section 6 - The Whisk There is a bamboowhisk on the lacquered table. The printed name of the bamboowhisk is "whisk". The description of the bamboowhisk is "A whisk of bamboo, made for whisking the tea to a froth." Understand "whisk" as the bamboowhisk. Section 7 - The Plum Tree and The Flowers In the garden is a plum tree. The description of the plum tree is "The small green leaves soften the outline of the dark spreading branches. It is the tree's flowers that are unusual." The flowers are part of the tree. Understand "blossoms" and "branch" as flowers. The description of the flowers is "Instead of the usual pink or white your plum tree has flowers of the palest blue. They are the result of the first time you practiced your new powers." The plum tree is fixed in place. Instead of taking flowers: move the branch to the player; say "You scan the tree. Finding a branch that is just right you nip it off at the base." The thin branch of pale blue flowers is a thing. The printed name of the thin branch of pale blue flowers is "branch". The description of the branch is "A thin branch of pale blue flowers." Instead of inserting the branch into the vase: say "You arrange the branch, snipping flowers here and there with your fingers until it arranged to your satisfaction."; now the branch is in the vase. Check taking the flowers: if the location of the branch is the tearoom, say "The branch you picked is still fresh." Check pouring something into the vase: if the branch is in the vase, and the heat of the liquid of the noun is hot, or the heat of the liquid of the noun is boiling: say "The hot water would kill the flowers." instead. Check inserting the branch into the fluid container: if the heat of the liquid of the second noun is hot, or the heat of the liquid of the second noun is boiling: say "The hot water would kill the flowers." instead. Section 8 - The Tatami Mats The tatami mats are in the tearoom. The description of the tatami mats is "Thin, finely packed straw edged in a rich blue fabric. Each mat takes up as much space as a sleeping drunkard, but are much more comfortable." Instead of smelling the tatami mats, say "The rich scent of straw." The tatami mats are an enterable supporter. The indefinite article of the tatami mats is "some". The tatami mats are scenery. Instead of taking the tatami mats, say "They are hardly portable." Instead of pouring a fluid container into the tatami mats, say "You only just replaced them.". Does the player mean entering the tatami mats: it is likely. Chapter 3 - The Player The robe is worn. The description of the robe is "Made from a rich blue silk your robe is, however, threadbare in patches." The carrying capacity of the player is 3. The player is wearing the sash. The description of the sash is "The sash is a faded seagreen and even more threadbare than your robe." The sash is a player's holdall. The indefinite article of the sash is "your". The description of the player is "Your mother used to call you 'Karasu' and the look of the crow has only intensified as you reached adulthood. Your long hair is black and fine, like crow's feathers. Your severe brows and beak nose only add to the resemblance." Instead of singing: say "You close your eyes and hum the lullabye your mother used to sing. It soothes you a little, but not enough. You still need that cup of tea." Instead of jumping when the player is in the tearoom: say "This is a place of peace and meditation, not of action. Save that for later." Meditating is an action applying to nothing. Understand "meditate" or "relax" as meditating. Instead of meditating when the player is in the tearoom: now the player is in the tatami mats; say "You lower yourself to the floor. You try to clear your mind, but still, behind your eyes, the headache throbs.". Instead of meditating when the location is the garden, say "You don't fancy sitting on the ground. It is, by definition, dirty." Arranging is an action applying to one thing. Understand "arrange [something]" as arranging. Check arranging something: If the noun is the branch: try inserting the branch into the vase instead; If the noun is the player: say "You straighten your clothing." instead; Otherwise: say "You fiddle with [the noun].". Chapter 4 - The Spring In the garden is a spring. The spring is a liquid source. The description of the spring is "A deep spring, lined with rock. The water trickles out of the basin and forms a small creek." Understand "creek" or "brook" as the spring. Before inserting something into a liquid source: say "[The noun] would sink to the bottom. If there is a bottom." instead. Chapter 5 - Testing Test walkthru with "open door / take teapot / go east / take flowers / fill teapot from spring / go west / put teapot on brazier / open box / take powder / take whisk / put branch in vase / z / z / z / z / z / z / z / z / z / z / z / z / pour teapot into cup / put powder in cup / whisk cup / drink tea" Test flowers with "open door / go east / x tree / x flowers / take flowers / x flowers / x branch / go west / put flowers in vase / x vase / x flowers / x branch" Test verbs with "cast xyzzy / cast magic / jump / sing / bathe / jump / meditate / stand / open door / go east / jump / sing / bathe / jump / meditate" Test teapot with "open door / take teapot / go east / fill teapot from spring / go west / put teapot on brazier / feel teapot / g / g / g / g / g / g / g / g / g / g / g / g / z / z / z / z / pour teapot into cup / i / x teapot" Part 5 - Help [Taken from "Y ask Y?" example 111 in the I7 Recipe Book] A thing can be examined or unexamined. A thing is usually unexamined. Carry out examining something: now the noun is examined. Taking inventory is acting confused. Looking is acting confused. Examining an examined thing is acting confused. After acting confused for the sixth turn: say "(If you are feeling lost, try typing [italic type]help[roman type] for suggestions.)". [Taken from "Ish." example 285 in the I7 Recipe Book] Understand "help" as summoning help. Summoning help is an action applying to nothing. Understand the commands "instructions" or "hint" or "hints" or "menu" or "info" or "about" as "help". Carry out summoning help: say "Help is available about the following topics. Typing [italic type]help[roman type] followed by the name of a topic will give further information.[paragraph break]"; repeat through the Table of Help: say " [title entry]: [summary entry][line break]". Getting help about is an action applying to one topic. Understand "help [text]" or "help about [text]" as getting help about. Carry out getting help about: if the topic understood is a topic listed in the Table of Help: say "[explanation entry][paragraph break]"; otherwise: say "You're out of ideas." Table of Help topic title summary explanation "teapot" "the teapot" "for heating water" "[one of]It's for heating the water.[or]Fill it with water from the spring and place it on the brazier[or]You will have to wait until the water boils.[cycling]" "tea" "the Tea Ceramony" "an ancient art" "[one of]There are two main parts to the tea ceremony.[or]First making the tea (the cup will give more details).[or]The second is flower arranging.[cycling]" "headache" "your headache" "how to get rid of it" "[one of]You need to relax.[or]The tea ceremony is a form of meditation.[or]Once you've drunk a cup of tea you should start to feel better.[cycling]" "vase" "the vase" "for flower arranging" "[one of]What is a vase usually for?[or]For arranging flowers.[or]Try putting the flowers in the vase.[cycling]" "flowers" "the flowers" "for putting in the vase" "[one of]Where might you find flowers or blossoms in such a bare garden?[or]Have you tried looking at the plum tree?[or]Wow, blue flowers. Have you tried taking them?[cycling]" "cup" "the cup" "you make tea in it" "[one of]The order is important when making tea this way. First add the water.[or]Then add the powder.[or]Whisk them together to a make a frothy green tea.[cycling]" "whisk" "the whisk" "used to whisk the tea" "[one of]What is the whisk used for?[or]It's used for whisking things.[or]More specifically the tea.[cycling]" "brazier" "the brazier" "a source of heat" "[one of]Have you tried examining it?[or]What needs heating?[or]The teapot would be a good start.[cycling]" "commands" or "talking" or "typing" "typing commands" "communicating with the game" "[one of]This game uses the usual text adventure or interactive fiction commands.[or]For moving around type the direction you wish to go in. For example type [italic type]go north[roman type] or [italic type]north[roman type] or even just [italic type]n[roman type], east is [italic type]e[roman type], etc.[or]To look type [italic type]look[roman type] or [italic type]l[roman type].[or]To see what you are holding type [italic type]inventory[roman type] or [italic type]i[roman type].[or]To examine things type [italic type]examine thing[roman type] or [italic type]x thing[roman type], where the word [italic type]thing[roman type] is replaced by the thing you want to look at [italic type]x teapot[roman type] for example.[or]Other commands that might be useful are [italic type]take thing[roman type], [italic type]put thing on other thing[roman type], [italic type]put thing [roman type]in[italic type] other thing[roman type], [italic type]pour thing in other thing[roman type], [italic type]fill thing from other thing[roman type].[cycling]"