Skip to content

Commit

Permalink
madlibs in my lang!!
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonak-Adipta-Kalita committed May 8, 2023
1 parent 606b35c commit a3818fc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/text-based-games/madlibs.jak
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var madlib = func() {
var person = input("Enter a person's name: ")
var color = input("Enter a color: ")
var food = input("Enter a food name: ")
var adjective = input("Enter an adjective: ")
var thing = input("Enter a thing name: ")
var place = input("Enter a place name: ")
var verb = input("Enter a verb: ")
var adverb = input("Enter an adverb: ")
var food_two = input("Enter a food name: ")
var thing_two = input("Enter a thing name: ")

"Today we picked apple from " + person + "'s Orchard. I had no idea there were so many different varieties of apples. I ate " + color + " apples straight off the tree that tested like " + food + ". Then there was a " + adjective + " apple that looked like a " + thing + ". When our bag were full, we went on a free hay ride to " + place + " and back. It ended at a hay pile where we got to " + verb + " " + adverb + ". I can hardly wait to get home and cook with the apples. We are going to make appple " + food_two + " and " + thing_two + " pies!"
}

print(madlib())

0 comments on commit a3818fc

Please sign in to comment.