I’m updated and upload the Missile Tracking PowerPoint. You can download it here:
By the end of class today ALL of you should have a functional Heading block. To ensure that it is functioning correctly, take a look at slides 14 & 15 from the updated PowerPoint. If you’re brave, take a look at the slides after #15. I might be able to drop in on the class to help clarify, so stay on task.
Here’s the grading rubric for the Infection Simulation, which will be evaluated for a grade on Friday, 5/5/17.
- Separate speeds for Infected and Healthy sprites.
- Individual Infected sprites ‘die’ after a time limit expires.
- Individual Infected sprites slow down over time.
- 4.0 – In addition to the 3.0 requirements
- Run multiple simulations. Be sure to clear previous population first.
- Report Average time till there are Zero infected alive over the course of all the simulations.
- Report % of Simulation that had uninfected survivors at the end.
I might not be in class today, and if so we’ll take a detour on your project today. The next step in the Missile Tracking project is complicated and I want to be there to help you with it.
Instead today you’ll head back to the Curriculum page, http://bjc.berkeley.edu/website/curriculum.html, and you’ll want find this particular activity:
Unit 5 Lab 3: Models and Simulations, Page 3
The short version? You’re going to simulate a disease spreading through a population. Think of it like a zombie simulator. Have fun. I’ll be checking your progress from credit on Tuesday, so don’t fool around.
Today we’ll be working to create a block called “BullseyeColorChange” that will change the pen’s color to make rings shapes emanating from the center of the work space. To pull that off we’ll need to make some other custom blocks for it to use.
- DistanceFromCenter block: This block will report the distance from the origin (0,0) and the sprite’s current position using the Pythagorean Theorem linked above.
- Is (x) Between (y) & (z) block: A true/false reporter block that will evaluate if the value of x is between y and z.
- A Rings List: It should look something like this:
Once you have those three components, you’ll use them to create your BullseyeColorChange block, which you can use to update the RandomCurve block like so:
Notice how ‘Rings’ is an input into BullseyeColorChange? How might that information be used inside the BCC block?
Today, I have a little challenge for you. I’ve linked to a Snap! project below. Once you open it, follow the instructions. You’ll need to determine how the RandomCurves block works. Then you’ll have to see if you can change what it draws. We’ll see what progress you can make when I get back tomorrow.
For my Intro to Comp Sci students. Today we’re going to learn a bit about Artificial Intelligence and it’s implications for the future. Please visit the following pages below and read through the articles while taking Cornell Notes
And for when you’re finish with the reading and notes, a little video on a related note.
Want to play with some advanced AI experiments?
The ability to clone objects in your programming environment is a powerful tool. Please take a look at the linked project below to understand how clones can be used to replicated objects and trigger their behaviors.
Using the demo as a starting point, modify this simple top down shooting mechanic into a side scrolling shooter.
This you’ll need to include:
- A continuously scrolling background.
- Randomly spawning hazards.
- At least one PowerUp that temporarily gives the player a new ability.
- A score and health system.