( (1 2 (CASE (VAR "verb") ((ARM (0 ) (IF (EQUALS (VAR "state") 1) (DECISION _ "~Roll up! Roll up!~ calls the busker.") () (DECISION _ "~Who'll come and see my magic?~ calls the busker.") ) )(ARM (3 4 ) (DECISION _ "~I don't mind if you look under the cups,~ says the busker, ~but I'd be grateful if you didn't walk away with them.~") )(ARM (5 6 ) (DECISION _ "There's nothing under the cup.") ))(DECISION _ "") ) ) (3 105 (CASE (VAR "verb") ((ARM (0 ) (IF (EQUALS (VAR "state") 3) (DECISION _ "~Three perfectly ordinary coloured cups,~ says the busker. He lifts each in turn to show that it is empty. ~Nothing under any of the,~ he says.") () (DECISION _ "~You don't want to look under the cup?~ says the busker. ~Well, see here.~ He lifts the cup to reveal a piece of folded paper, which he unfolds. It's your name! The busker presses it into your hand.") ) )(ARM (3 4 ) (DECISION _ "~I don't mind if you look under the cups,~ says the busker, ~but I'd be grateful if you didn't walk away with them.~") )(ARM (5 6 ) (IF (EQUALS (VAR "state") 3) (DECISION _ "There's nothing under the cup.") () (DECISION _ "Under the cup is a piece of folded paper. You take it and unfold it. It's you name") ) ))(DECISION _ "") ) ) (8 9 (IF (EQUALS (VAR "verb") 0) (IF (EQUALS (VAR "state") 8) (DECISION _ "~Now,~ says the busker, ~to demonstrate that I'm not any prepared equipment, I'd like to do this trick with an object from the audience.~") () (DECISION _ "~A small object would be best, but I will consider anything,~ says the busker.") ) () (DECISION _ "") ) ) (10 11 (IF (EQUALS (VAR "verb") 0) (IF (EQUALS (VAR "state") 10) (DECISION _ "~I see that you're worried,~ says the busker. ~This isn't one of those tricks where I smash your watch with a hammer!~") () (DECISION _ "~How about you, young lady?~ asks the busker.") ) () (DECISION _ "") ) ) (13 20 (CASE (VAR "verb") ((ARM (0 ) (IF (EQUALS (VAR "trickobject") 0) (DECISION _ "The busker sighs. ~Well if no-one wants to give me anything, I'll use this marble.~ He holds it up and it sparkles in the sunlight. ~You'll just have to trust that it's genuine~") () (DECISION _ "") ) )(ARM (1 2 ) (IF (OR (EQUALS (VAR "noun") 0) (EQUALS (VAR "noun") 1) ) (DECISION _ "The busker calls after you as you leave, ~Hey! Don't you want to see the rest of the trick!~") () (DECISION _ "") ) ))(DECISION _ "") ) ) (15 21 (CASE (VAR "verb") ((ARM (0 ) (DECISION _ "~Go on,~ says the busker. ~Guess which one of the cups the object is underneath.~") )(ARM (1 2 ) (IF (OR (EQUALS (VAR "noun") 0) (EQUALS (VAR "noun") 1) ) (DECISION _ "The busker calls after you as you leave, ~Hey! Don't you want to see the rest of the trick!~") () (DECISION _ "") ) )(ARM (3 4 ) (DECISION _ "~I don't mind if you look under the cups,~ says the busker, ~but I'd be grateful if you didn't walk away with them.~") )(ARM (5 6 ) (CASE (VAR "trickobject") ((ARM (0 ) (DECISION 16 "You lift the cup and discover the marble which the busker retrieves.") )(ARM (1 ) (DECISION 300 "You lift the cup and discover the brass key. The busker winks at you. ~Take care, now~") ))(DECISION _ "") ) ))(DECISION _ "") ) ) (16 18 (IF (EQUALS (VAR "verb") 0) (IF (EQUALS (VAR "state") 16) (DECISION 15 "") () (DECISION 14 "~Welcome back,~ says the busker. ~Perhaps you would be so gracious as to help me finish the trick?~") ) () (DECISION _ "") ) ) (23 24 (IF (EQUALS (VAR "verb") 0) (IF (EQUALS (VAR "state") 23) (DECISION _ "~The police constable approaches the table. ~I thinks its under this cup where you put it,~ he says. ~You're not fooling me with your patter.~ He looks under the cup. There's nothing there. ~Oh!~ he says.") () (DECISION _ "The constable surveys the remaining two cups. ~Perhaps it's under this cup then.~ But that one is empty too.") ) () (DECISION _ "") ) ) (25 106 (IF (EQUALS (VAR "verb") 0) (IF (EQUALS (VAR "state") 25) (DECISION 16 "The constable says, ~You're a sly one. The object must be under this cup!~ He looks under the cup and extracts a toffee wrapped in shiny paper, which he expertly unwraps and sticks in his mouth.") () (DECISION 9 "~Now,~ says the busker, ~I need a small object from the audience for my next trick.~") ) () (DECISION _ "") ) ) (101 102 (CASE (VAR "verb") ((ARM (0 ) (IF (EQUALS (VAR "state") 101) (DECISION _ "~Go on, look under this cup,~ says the busker") () (DECISION _ "") ) )(ARM (3 4 ) (DECISION _ "~I don't mind if you look under the cups,~ says the busker, ~but I'd be grateful if you didn't walk away with them.~") )(ARM (5 6 ) (DECISION 105 "Under the cup is a piece of folded paper. You take it and unfold it. It's you name") ))(DECISION _ "") ) ) (103 104 (CASE (VAR "verb") ((ARM (0 ) (IF (EQUALS (VAR "state") 103) (DECISION _ "~Go on, it won't bite you,~ says the busker") () (DECISION _ "") ) )(ARM (3 4 ) (DECISION _ "~I don't mind if you look under the cups,~ says the busker, ~but I'd be grateful if you didn't walk away with them.~") )(ARM (5 6 ) (DECISION 105 "Under the cup is a piece of folded paper. You take it and unfold it. It's you name") ))(DECISION _ "") ) ) (201 (IF (EQUALS (VAR "verb") 0) (DECISION _ "~Go on, take the toffee,~ says the busker.") () (DECISION _ "") ) ) (202 (DECISION _ "") ) (203 (IF (EQUALS (VAR "verb") 0) (DECISION 105 "~All right, you don't want it, no skin off my nose,~ says the busker. He tosses it up into the air and it vanishes.") () (DECISION _ "") ) ) )