##Scope
This project involves implementing the core functionality for a simple mad libs game. The objective of this project is for students to practice their string manipulation skills.
##Before Class
Students should only start this project after they have completed the other lessons in the unit.
See here for code and here to view.
See here for code (private).
- Write do-now based off of assessments from previous lesson.
##During Class
###Do Now
- Attendance: http://scripted.org/attendance
- Return graded do-now and exit ticket from previous class
- Do-now quiz
###Opening
What is madlibs? Let's play a game together here.
###Lecture You are going to build the guts of a madlibs game. You will be given starter code. Your instructions are:
Modify js/guts.js
. It must have the following function in it:
function runMadlibs(text, boy_name_1, noun_1, occupation_1, measurement_1, noun_2,
adjective_1, game_1, adjective_2, plural_noun, verb_ing_1)
You must create and implement this function. The text
variable represents the text that you will need to modify. Print it out to the console to get more clues. The other parameters represent the values from the text boxes on the page. This function must return the modified text.
###Brainstorming Before you start coding, identify the list of steps you need to do to finish this project. Here's a start:
- What string functions do you anticipate using? How do you use them?
- Bring the starter code into your own environment.
- Replace one word and check that your code works. Then move on to others.
###Build Time Students will work alone on this project. The teacher's role will be to walk around the room helping students with any questions they have. Students are encouraged to look at previous lessons for reference.
###Extension Activities Students who complete the project at hand early may attempt to improve their project by including the following:
- Added CSS for visual customization
- A second MadLibs story
- Create a site in which the user is first prompted to choose between 2 or more MadLibs stories to fill in.
##Closing Select students to present their work to the class.
###Check for Understanding Teachers should keep track of student success while they are presenting to the class.
###How to Submit The teacher must ask students to share the link to their project on your school's Project Submission Form.
Also remind students to add a link to their project on their About Me page.