Why we calculate two numbers, not one, for dice rolls

Look at this. You should see the reason plainly. Graphic: Two dice

When you get a random number from 2 to 12 for a dice roll, you’re making the chances for a roll of 7 the same as 1 in 11.

That’s not how it is when you actually roll two dice. Because so many combinations can add up to 7, the probability is much higher — 17 percent.

Meanwhile, it’s really hard to roll “snake eyes,” or 2 (double ones). It’s equally hard to roll a 12, or two sixes. The chances for 2 or 12 are only 3 percent.

But only if you get two unique random numbers, one for each die.

Tips about your final project

First, all the details are here: Project.

Read all of that carefully before you start work on your project plan.

Your project should be sufficient to impress an employer in a job interview.

Look here for inspiration: Storytelling Now. Follow several links there. You will see a lot of very different things.

You might want to learn a new technology for your project, like Tabletop.js, or any one of the hundreds of other free JavaScript libraries that are out there.

But DON’T start with a technology. Start with a solution to a problem. People in x group want to do y. People of x type need to learn y. Then think about how to do it — how to make that solution — make it with code for the Web.

  • Games
  • Animation
  • Engagement
  • Interaction
  • Data

Those are some of the frames for types of projects you might create.

Not a bunch of Web pages. An app. Even if it’s not on a phone, it can be an app. For example, THIS is an app: Treatment Tracker. NPR makes lots of cool apps, like this SXSW music player. This is kinda sorta like a game: Parable of the Polygons.

Here’s more inspiration from 2014.

Tasks for Week 9 — JavaScript, March 9 – 13

When you come back from Spring Break, we will have a normal week in this class. That means a normal class meeting on Monday, an individual meeting, a quiz, and an assignment (in Canvas) due on Sunday night.

Please do not forget that your 15-point CSS assignment (in Canvas) is due on Sunday, March 8.

This week we start JavaScript. HTML is for structure, CSS is for design, and JavaScript is for action! Yay! See the Course Schedule under Week 9 for the list of exercises you need to show me in your weekly meeting. Try to remember the principles you learned in Python — those will help you make sense of JavaScript!

The quiz this week will be all about JavaScript. So will the assignment in Canvas.

Week 7 assignments: Next steps with HTML and CSS

Don’t delete your Codecademy account — you’ll be using it again for JavaScript next!

This week you’ll be the same “type” you were last week. Find your type below and do all the work listed there, to be finished in the week of Feb. 23 – 27.

Review the Checklist for your HTML5 and CSS knowledge.

Also, read the assigned articles linked on the Course Schedule page.

Continue reading

Week 6 assignments: Getting solid with HTML and CSS

You will receive an email from me that tells you whether you are Student Type 1, 2 or 3. These “types” are explained below. Your type determines your benchmark for Week 6.

As always, work for one hour every day to build your skills. Even though we are not learning Python this week, the same principles for learning (really learning) code apply to HTML and CSS also. Type it. Play with it. Practice.

By Monday, Feb. 23, I’d like you all to be comfortable with everything on this list: Checklist for your HTML5 and CSS knowledge.

Everyone: Review the proper use of HTML5 tags (article, aside, nav, section, footer). Here’s a good, brief post about that. I saw a lot of unnecessary use of header, for example, in the “Abe” exercise.

Step 1: Codecademy Setup

Create an account at Codecademy (it’s free).  Continue reading

Get ready for Weeks 6 and 7 and our HTML, CSS review

We will move on from Python after the Week 5 meetings, quiz and problem assignment.

Next up is a review of HTML and CSS. This begins in class on Monday, Feb. 16, when I will give you an HTML-and-CSS exercise to do during class and hand in. Based on this exercise, I will assess how much you know — basically, your skill level.

Before that class, you should review your previous work with HTML and CSS so you are properly prepared to complete the in-class assignment on Feb. 16.

Read the assigned readings. These are listed under Weeks 6 and 7 on the Course Schedule. Material from the readings will be in the quizzes in these weeks.

Review the checklist (link under Week 6 on the Course Schedule) to refresh your memory.

You can also review HTML and CSS at the excellent HTML Dog website.

DO NOT rely on the W3schools website. It is not a respected resource. See W3Fools for more information and other good resources.