Thursday, December 12, 2019

Final Review Fall 2019

Hello, I am going to update this post as I create more review material for you.

Exam Information:

Times:

1st Period: Tuesday 12/17 at 1:15 - 3:15 PM

Test Format:

Paper Test: Approximately 60 minutes. Cumulative -  SNAP! language.

Practical Test: Approximately 60 minutes. Be prepared to code something under time constraints or fix script that is not working properly.

How to Practice:

1) Look at your old projects.

2) Review your Notes

3) Look at your old labs

4) Look at these exercises Practice for Final Exam (pdf version) (docx version)

5) These exercises can give you more practice for the practical (coding) part of the final:

Custom Reporter Blocks and drawing shapes. Examples:

  • NEW: Know how to traverse a given string of words, creating a list of words.
  • Create a block that takes two input variables (numbers) and draws a corresponding parallelogram with those dimensions. Tessellate (tile) the pattern across a 1 row.
  • Know how to create regular polygons with a custom block.
  • Create custom reporter blocks involving lists. Examples:
    • Create a block that takes in a list of numbers and reports their sum.
    • Use the block above to create a block that takes in a list of numbers and reports their average.
    • Create a custom block that takes in a list of numbers and reports the mode (most frequent number) of that list
    • Create a block that takes in a list of numbers. It should report reports a list of numbers that has corresponding items that are 10 times larger.
    • Create a block that takes in a list of words and joins them with dashes in between them. For example if you passed in ["Winston", "is", "the", "best", "gorilla"] the list would report"Winston-is-the-best-gorilla". (No, you can't use the join built-in join block)
  • Create a block to work with coordinates:
  • Create a block that takes in 4 numbers. In order they are (x1, y1, x2, y2) , the x and y coordinates of two points on the plane. The block should output the midpoint of the two points.
  • Create a block that takes in 4 numbers. In order they are (x1, y1, x2, y2) , the x and y coordinates of two points on the plane. The block should output the distance between two points.



Monday, December 2, 2019

Project 4: Snowman


A classic word game pitting the "guesser" against the "chooser". The chooser picks a word and the guesser guesses letters that might appear in the word until they discover the word or run out of guesses. This is a makeover of Hangman (because mental health and depression is a serious matter). Save the SnowDude from turning into a puddle!

Use custom blocks and Lists to implement your own word guessing game.

Here is a link to some snowman costumes, if you like.

Rubric

RequirementMax. Points
Basic Game Mechanics46 subtotal
Created a word list from the variable HugeStringContainingWords using the script from 11/25/2019.  Pick a random word from that list and call it SecretWord. 

Note: You should have already completed this in class before you started the project. Leave the code you used to do this in the coding space, but do not have it initialize when green flag is clicked. 
4
The user should be asked to guess letters until they have guessed the word or run out of guesses.6
Create the DisplayedString that displays the status of the game (not a list). When the game starts it should be shown with the same number of asterisks/hyphens as letters in the word. The DisplayedString is continually updated and displayed during the game.4
Display the number of remaining guesses throughout the game. There should be a limited number of guesses, if the player runs out of guesses before they discover the word they lose. When the player guesses a letter correctly they don't lose a guess.4
Keep track of the letters the user has guessed in a list and display those guesses throughout the game.6
Validate the player's guess to make sure it is a letter (not number or something else) and that it hasn't been guessed already. If the validation fails, tell the player what they did wrong and how to fix it (e.g., "Unrecognizable letter, enter a single letter" or "You already guessed that, Kyle").6
After you validate the guess, determine if the user guesses a letter correctly.

If there is a correct guess, alert the user and replace the hyphen that represents the letter with the letter itself (e.g., "-" turns to "e" if "e" is a correct guess). 
6

If there is not a correct guess, alert the user and make the snowman melt a little bit.

6
Good Programming Techniques8 subtotal
The program initializes everything repeatedly and reliably on Green Flag1
Variables, sprites, and costumes are all named uniquely and obviously1
The program clearly begins (“Start screen”) and ends (“Game Over screen”) and has a Replay button to play again. The start screen should have clear instructions on how to play and the end screen should tell the user if they won or lost.3
Use comments to demarcate the different parts of the code3
Level Up! Must attempt to do all the above Core Requirements before earning these points.subtotal
Create a sprite that displays a set of markers representing remaining guesses left and removes a marker for each wrong guess.2
Support multiple words or phrases as the Chosen Words. Spaces do not count as letters and should not be replaced with hyphens in the Display Word (word with missing letters).5
Total Points (Max. possible is 57 pts)50


Link to Today's Pseudocode Exercise

Blog information move to Google Doc

Hello All, Moving forward, please find all information about the class that you used to find on a live google doc agenda. The link is foun...