Upload
crm7g
View
383
Download
0
Embed Size (px)
DESCRIPTION
Problem Set 8 for CS1120 at UVA
Citation preview
Mad Libs for LearningProblem Set 8Caroline Mattey
Target Audience
•This game is made for sixth graders who are learning about the grammar of the English language. This card game will teach them about replacement grammars and how they apply to grammar in English.
Goal:• The goal of the game is to create a proper
sentence and be able to end your sentence by finding a period first. This is made more difficult in that there is a proportionally higher number of conjunctions that force you to start a new clause and a proportionally lower number of periods to draw when drawing a MoreClauses card after you have finished a clause. You will be given a point for every turn you must take, so you try to finish your sentence by replacing the nonterminals in proper order fastest. The person with the lower number of points at the end wins.
Set Up:• We will run a simulation of the game as the rules are
given to explain how it would work. Note: if you were actually playing the game, you would take turns back and forth, but for the purposes of this simulation we will show the results of each rule comparing the two players so it’s easier to follow.
• This is a simplified version of the real replacement grammar for the English language that only contains subjects, verbs, objects, prepositions, conjunctions, and adjectives.
• There are three stacks of cards: Clause cards which are purple, MoreClauses cards which are blue, and Terminals which are pink and contain all of the possible subjects, verbs, objects, adjectives, prepositions, and conjunctions.
Replacement GrammarsIn a replacement grammar there is a thing called a
nonterminal on the left side of a ::=> symbol. On the right side of the symbol, there can either be more nonterminals or a terminal. The right side of the replacement rule is what you can replace the left side’s nonterminal with. Many nonterminals have different options as to what they can be replaced with.
All nonterminals can and should be replaced when creating a string in the language. Nonterminals can either be replaced with other nonterminals or terminals. Terminals cannot be replaced.
In this game, the nonterminals are Sentence, Clause, MoreClauses, Subject, Verb, Object, Adjective, Preposition, and Conjunction. The terminals are the examples of words that fit under the subject, verb, object, adjective, preposition, and conjunction categories.
Replacement Grammar• Sentence ::=> Clause MoreClauses
• Clause::=> Subject Verb Object
• Clause::=> Subject Verb Adjective Object
• Clause::=> Subject Verb Preposition Object
• MoreClauses::=> Conjunction Clause MoreClauses
• MoreClauses::=> E (in this game “empty” will be represented by a period to end the sentence)
Replacement GrammarsA string is created when there are no nonterminals
remaining, which will be represented by the addition of a period which terminates the string.
The nonterminal MoreClauses in the replacement grammar Sentence::=> Clause MoreClauses is what allows the language to create infinitely long strings. MoreClauses can either be replaced with a period, thus terminating the sentence, or it can be replaced with a conjunction, clause, and another MoreClauses. Embedding MoreClauses into the replacement grammar of MoreClauses makes this recursive. Because it is recursive, it can loop back on itself an infinite number of times creating longer and longer sentences until it finally terminates with a period.
Replacement Grammar Continued..• Subject::=> Barack Obama/ Dimitry Medvedev/ David
Cameron/ The Doctor/ Mike London
• Verb::=> dances/ eats/ itches/ encourages/ destroys/ helps/ offends/ hunts/ opens/ jumps/ bounces/ judges
• Object::=> puppies/ chicken sandwiches/ laptops/ Ford Pintos/ footballs/ pencils/ tv remotes/ TARDIS
• Adjective::=> bizarre/ dramatic/ cool/ nervous/ perfect/ rare/ smelly/ tacky/ wonderful/ jolly/ political/ hungry
• Conjunction::=> and/but
• Preposition::=> with/ to/ from/ above/ around/ toward/ via
Rule #1: Each player will start with a “Sentence::=> Clause MoreClauses” card. They will then draw a Clause card. The options include, Subject Verb Object, Subject Verb Adjective Object, and Subject Verb Preposition Object.
Bobby draws a starting clause card.
Jane draws a starting clause card.
ClauseSubject Verb Adjective
Object
ClauseSubject Verb Preposition
Object
Rule #2: Each player draws a card. If they don’t draw a subject card (the first nonterminal in their clause card they need to replace) they wait another turn. This continues until they draw a subject card.Bobby draws a subject card.
Jane draws a verb card. On her next turn, she draws a subject card.
SubjectBarack Obama
SubjectMike London
Rule #3: Each player draws a card. If they don’t draw a verb card (the next nonterminal in their clause card they need to replace) they wait until their next turn and draw again. This continues until they draw a verb card.
Bobby draws an adjective card. On his next turn, he draws a subject card. On his next turn, he draws a verb card.
Jane draws a preposition card. On her next turn, she draws a verb card.
Verbjudges
Verbbounces
Rule #4: Each player draws a card. If Bobby doesn’t draw an adjective or Jane doesn’t draw a preposition card (the next nonterminal in their clause card they need to replace) they draw again on their next turn. This continues until they draw this card. Bobby draws an verb card. On his next turn, he
draws an adjective card.
Jane draws a subject card. On her next turn, she draws a subject card again. On her next turn, she draws an object card. On her next turn, she draws a preposition card.
Preposition
with
Adjectiverare
Rule #5: Each player draws a card. If they don’t draw an object card (the next nonterminal in their clause card they need to replace) they draw again on their next turn. This continues until they draw this card. Bobby draws an object card.
Jane draws a conjunction card. On her next turn, she draws a verb card. On her next turn, she draws an object card.
Objectpencils
ObjectChicken sandwiches
Rule #6: Once a player has finished replacing the nonterminals from his/her clause card, they must draw another card from the MoreClauses stack. If they draw a period they have finished or they will draw a Conjunction Clause MoreClauses card and have to keep going.
Bobby draws Conjunction Clause MoreClauses from the MoreClauses stack.
Jane draws a period.
MoreClausesConjunction Clause MoreClauses
MoreClauses.
Rule #7: If they draw a Conjunction Clause MoreClauses Card, they must then draw a conjunction to replace the first nonterminal.
Bobby draws a subject card. On his next turn, he draws an object card. On his next turn, he draws a conjunction card.
Since Jane drew a period, she is finished! This is her final sentence.
Mike London bounces with pencils.
Conjunctionand
Rule #8: Once a player has drawn a MoreClauses card that requires a new clause to be formed and has drawn their conjunction, they draw a new Clause card from the clause card stack.
Bobby draws a new clause card.
ClauseSubject Verb Object
Rule #9: Once a player has drawn a new clause card, they must procede to follow rules #2-7.
Bobby draws a subject card after 4 turns.
Bobby draws a verb card after a turn.
Bobby draws an object card after 2 turns.
Bobby draws a period from the MoreClauses stack. He is finished! His final sentence is…
SubjectDavid Cameron
Verbhelps
ObjectFord Pintos
Barack Obama judges rare chicken sandwiches, and David Cameron helps Ford Pintos.
Scoring:
After counting up each number of turns each player has taken….
Bobby: 21 points (it took him 21 draws to finish)
Jane: 13 points (it took her 13 draws to finish)
Jane wins!