IntroComSci: How Machines Learn


One more link to any older post:


IntroComSci: Another Brick in the Wall

Your task for the today is to build a Brick Wall, or at least start that process. By the end of class, and really the start of class next week, I expect the see the following:

  • Build the “Draw Brick, Length Width” custom block. <== Super easy
  • Build custom block that will use the Draw Brick block to make a row of bricks, called “RowA”.
    • Make sure there are six bricks in the row.
    • Make sure the spacing between the bricks is the same.
  • Build a custom block for the 2nd row, “RowB”.
    • Have it use 5, not 6 bricks.
    • Create a “Half Brick” block. Notice at the ends of RowB, that there are smaller bricks. These are called half bricks. Their name is a bit of a lie, as they are less than half a brick.
  • When you run RowA and then RowB, you should have two rows stacked on top of each other. Here’s the tricky part: Both rows should be the same total width.

Here’s the link to the Brick Wall activity on the curriculum page.

If the link doesn’t work, it’s in Unit 2, Lab 4.

CompSci:Power of a ChatBot

On the subject of chatbots, we’re going to build a simple MadLibs generator. The first step will be to take words and pluralize them. For that we’ll need to read of on some rules on how to pluralize different types of words.

It’s easy to simply add an ‘s’ to the end of the word. We want to find a way to add ‘es’ to words with specific endings.

IntroCompSci: 10/4/17

Today your going to take a break from building the Hangman Game to learn a bit more about how you can use lists.

Here is a direct link to today’s activity.

If you want an A for today, make sure you have this activity when I check your progress at the beginning of class next week.

IntroCompSci: # Guessing Game Rubric

Before the end of class today, I’ll be scoring your progress with the Guessing Game assignment. Below you’ll find the point based scoring rubric.

  • 1pt – The # Guessing Game is all contained within one Custom Block.
  • 1pt – The program asks for and uses the player name.
  • 1pt – The program selects a secret number between 1 and 10 that the player must guess to win.
  • 1pt – The program tracks how many guesses the player makes and mentions it when they finally win.
  • 2pt – The program asks the player to set the maximum random number, instead of defaulting to 10. i.e. They can pick a number between 1 and 30, or 1 and 6.
  • 2pt – The program switches up its response when players guess incorrectly. The goal is that it doesn’t say the same time over and over again.


3pts = 2.5

4pts = 3.0

6pts = 3.5

8pts = 4.0

IntroCompSci: Daisy Design

Here the rubric for the Daisy Design activity:

  • Create a custom block called “Draw Circle [ ]” with an input for the size of the circle.  -1pt.
  • Create a custom block called “Draw Daisy [ ] [ ]” with an input for the size of the circles in the daisy design, and an input for the number of circles that make up the design. The circles it draws should be evenly spaced around the center. -2pts.

3 points gets you a 3.0 for the assignement. The following additional steps will push you into 3.5 and 4.0 territory.

  • Create a custom block that uses Draw Daisy to create patterns as in the images below:
    • Triangle of  DaisiesThree Daisies
  • Create an alternative version of the Draw Daisy block that changes the color of the pen depending on which direction the sprite is facing.
  • Create an alternative version of the Draw Daisy block that changes the size of the pen depending on which direction the sprite is facing.

I will be checking you Daisy Design by the end of the period today, 9/21/17.

IntroCompSci: Circumference

The distance around a rectangle or a square is as you might remember called the perimeter. The distance around a circle on the other hand is called the circumference (c).

circle diameter radius

A line that is drawn straight through the midpoint of a circle and that has its end points on the circle border is called the diameter (d)

Half of the diameter, or the distance from the midpoint to the circle border, is called the radius of the circle (r).

The circumference of a circle is found using this formula: