When you finished all assignments and would like an extra challenge... give these a try.
1. Rock, Paper, Scissors
SKILLS: Variables, boolean expressions, conditional statements, random numbers, logic/ reason, loops
Write a sketch to play rock, paper, scissors.
Use the picture data type to display images of the rock, paper, scissors or draw using the draw functions
EXTRA BONUS: Play the "Big Bang Theory" version -> Rock, Paper, Scissors, Lizard, Spock
SKILLS: Variables, boolean expressions, conditional statements, random numbers, logic/ reason, loops
Write a sketch to play rock, paper, scissors.
- The user is player one. They pick a number between 1 and 3
- The computer is player two. Randomly select a number between 1 and 3
- Compare the numbers and select a winner based on the following criteria
- Rock beats scissors
- Scissors beats paper
- Paper beats rock
- Display back the the user who is the winner
Use the picture data type to display images of the rock, paper, scissors or draw using the draw functions
EXTRA BONUS: Play the "Big Bang Theory" version -> Rock, Paper, Scissors, Lizard, Spock
2. MadLibs
SKILLS: string methods, user input, conditional statements
Look online for a "Mad Libs". Ask the user to the components that need to be filled in. Use a variety of String Methods to complete the mad libs. Display back to the user, the completed Mad Libs. Use the correct "articles" (a vs an) etc.
https://www.madlibs.com/
SKILLS: string methods, user input, conditional statements
Look online for a "Mad Libs". Ask the user to the components that need to be filled in. Use a variety of String Methods to complete the mad libs. Display back to the user, the completed Mad Libs. Use the correct "articles" (a vs an) etc.
https://www.madlibs.com/
3. The 12 Days of Christmas
SKILLS: Arrays, strings, loops, conditional statements
Write a sketch that prints the lyrics of the 12 days of Christmas. Store each verse within the element of a String array of size 12 and use the index to indicate which "Day of Christmas" (If the index is i, then the day of Christmas would be i+1). Use nested loops to iterate through the array. Use a conditional statement to determine the correct "superscript" of your day of Christmas. (first, second etc)
https://genius.com/Christmas-songs-the-twelve-days-of-christmas-lyrics
SKILLS: Arrays, strings, loops, conditional statements
Write a sketch that prints the lyrics of the 12 days of Christmas. Store each verse within the element of a String array of size 12 and use the index to indicate which "Day of Christmas" (If the index is i, then the day of Christmas would be i+1). Use nested loops to iterate through the array. Use a conditional statement to determine the correct "superscript" of your day of Christmas. (first, second etc)
https://genius.com/Christmas-songs-the-twelve-days-of-christmas-lyrics