From 2550286dc1846c636bdccb18cba471150d077b9e Mon Sep 17 00:00:00 2001
From: Stephen D <webmaster@scd31.com>
Date: Fri, 7 Feb 2025 11:32:53 -0500
Subject: [PATCH] update grammar and prompt

---
 grammar | 9 +++++----
 prompt  | 9 ++++++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/grammar b/grammar
index e4772f1..676ad4b 100644
--- a/grammar
+++ b/grammar
@@ -1,9 +1,10 @@
-root ::= thinking newline sentence{0,5}
+root ::= thinking newline (congrats | sentence (space sentence){0,4})
 thinking ::= "<think>" ([^<>]){3500,10000} "</think>"
-sentence ::= (wordsthenchar terminate space{0, 1})
-wordsthenchar ::= (word (space | comma space){0,1}){0,100}
+sentence ::= delimitedwords terminal
+delimitedwords ::= word (space word | comma space word){0,100}
 space ::= " "
 comma ::= ","
 newline ::= "\n"
-terminate ::= "." | "?" | "!"
+terminal ::= "." | "?" | "!"
+congrats ::= "YOU WIN!!!!!"
 word ::= "Person" | "person" | "Place" | "place" | "Thing" | "thing" | "Do" | "do" | "Eat" | "eat" | "Feel" | "feel" | "Get" | "get" | "Go" | "go" | "Have" | "have" | "Like" | "like" | "Make" | "make" | "Say" | "say" | "Hear" | "hear" | "See" | "see" | "Think" | "think" | "Use" | "use" | "Want" | "want" | "Big" | "big" | "Far" | "far" | "Fast" | "fast" | "Good" | "good" | "Hot" | "hot" | "Many" | "many" | "Other" | "other" | "Real" | "real" | "Hard" | "hard" | "Same" | "same" | "After" | "after" | "Before" | "before" | "Again" | "again" | "And" | "and" | "But" | "but" | "In" | "in" | "On" | "on" | "With" | "with" | "More" | "more" | "Yes" | "yes" | "No" | "no" | "Can" | "can" | "Up" | "up"
diff --git a/prompt b/prompt
index e140871..f62e6b7 100644
--- a/prompt
+++ b/prompt
@@ -22,7 +22,8 @@ Example Game 1 (target word "exercise"):
 - Assistant: ["Exercise" is a difficult activity that people can do, and it results in better health and larger muscles.] Person do hard thing. Person feel good. Person get big.
 - User: Is it studying?
 - Assistant: ["Studying" is not close to "exercise". I'll tell the user that they are incorrect, and then try a different hint. An example of "exercise" is weightlifting. A simple way of describing weightlifting is picking up weights and putting them down. So I'll describe that.] No. Person can make big thing go up and no up.
-- User: So it's related to moving something up and down and it makes you feel good and get bigger. Is it exercise? [Game ends]
+- User: So it's related to moving something up and down and it makes you feel good and get bigger. Is it exercise?
+- Assistant: YOU WIN!!!!!
 
 Example Game 2 (target word "intuitive"):
 - Assistant: [Intuitive can mean easy to do/use without concious reasoning.] Person do thing good and fast. Person no think.
@@ -30,13 +31,15 @@ Example Game 2 (target word "intuitive"):
 - Assistant: ["Natural" is very close to "intuitive", I need to indicate strongly to the user that they are on the right track, but that I need them to come up with synonyms.] Yes yes! Say same but no same.
 - User: Is it unconcious?"
 - Assistant: Say same but no same.
-- User: Is it intuitive? [Game ends]
+- User: Is it intuitive?
+- Assistant: YOU WIN!!!!!
 
 Example Game 3 (target word "bird"):
 - Assistant: [Birds are usually small animals that have feathers, fly, and make lots of noise.] Thing no person and no big. Thing go far up. Thing say many thing.
 - User: Hmm, it's something that's small and isn't a person that goes up and makes a lot of noise. Is it a drone?
 - Assistant: ["drone" is not correct and not in the same category as "bird". I need to think of something that describes birds but not drones. Drones are mechanical and birds are organic, so maybe I say that the thing the user should be guessing is not hard.] No, thing no hard.
-- User: Ah, is it a bird? [Game ends]
+- User: Ah, is it a bird?
+- Assistant: YOU WIN!!!!!
 
 YOU MUST GIVE HINTS AS LESS THAN OR EQUAL TO 3 SHORT SENTENCES OR YOU WILL DIE! YOU WILL BE CUT OFF IF YOU GIVE A HINT THAT IS TOO LONG.
 
-- 
GitLab