PHP Classes

File: ButtermilkPancakes.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick  >  PHP Expert System Engine  >  ButtermilkPancakes.xbt  >  Download  
File: ButtermilkPancakes.xbt
Role: Auxiliary data
Content type: text/plain
Description: Xbert class
Class: PHP Expert System Engine
Ask questions and make decisions based on answers
Author: By
Last change:
Date: 4 years ago
Size: 2,543 bytes


Class file image Download
/*,, ButtermilkPancakes.xbt -- How to make and cook bob's buttermilk pancakes.
  This is an example of how to use the expert system XbertClass.php.
  Author: bob Wedwick

2	,,* * * * * * * * * * * *
	,,In addition to being an example for using the Xbert expert system
	,,	this gives you instructions for making really good, soft
	,,	buttermilk pancakes.
	,, ----

# 	if the batter is already mixed up
4	,ASKYes,Is the batter already mixed up?
//	tell about the appearance of old batter
	,,Batter from days before usually has some dark coloring on top.
	,,That is yeast, and it is fine; the batter is not spoiled.
	,,Just mix it into the batter.
	,,It will be a little thinner but is still good.
// skip the recipe by skipping to a node one less.
# batter is not mixed up, give the ingredients
4	,,-----
	,,You need 10 ingredients and a mixing bowl.
	,,This makes enough batter for 6 people, unless they are really hungry.
	,,	1 tsp of yeast
	,,	1 tsp baking soda
	,,	1 tsp baking powder -- crazy but we need all three above
	,,	2 eggs
	,,	1/4 tsp of salt
	,,	2 cups of flour
	,,	2 cups of buttermilk
	,,	1/3 cup of cooking oil
	,,	1/3 cup of luke warm water
	,,	1/2 cup sugar
# if some ingredients are missing instruct them run this again later
	,ASKNo,Do you have all these ingredients?
	,pau,Run this pancake program later when you have all ingredients.
# if ready to mix the batter, here are the steps
	4,ASKNo,Are you ready to mix up the batter?
	,pau,See you later when you have some time!
# ready to mix
4	,,* * * *
	,,Put water in the bowl and dissolve the yeast in it.
	,,Add the eggs, salt and sugar
	,,Stir briefly
	,,Add oil, baking soda and baking powder
	,,Stir briefly
	,,Add both cups of flour * and 1/2 cup of buttermilk
	,,Stir briefly until it gets lumpy
	,,Add another 1/2 cup of buttermilk
	,,Stir until it is blended fairly well
	,,Add remaining cup of buttermilk
	,,Stir until completely blended
	,,* Feel free to use whole wheat flour and to add
	,,    oat bran or flax meal in place of some of the flour.
	,, Raisins, cranberries, or chocolate chips are welcome.
# if ready to cook the pancakes
3	,,------
	,ASKy,Do you want to cook pancakes now?
# if no batter is left, there is nothing to save
	,ASKN,Do you have any batter left over?
# tell how to save the batter
3	,,-------
	,,The batter will keep in the refrigerator for several days.
	,,Keep it in a container that is NOT tightly closed
	,pau,so gas can escape.

For more information send a message to info at phpclasses dot org.