There are printable slides and a video of what I would have said in class here's the handout. Tilt that LED! Remember that game from the first day where you could "roll an LED" around the grid on the Micro:Bit? Well, it's time for you to write that program yourselves. If you need more of a hint, the program is on the next page, but try it with just the algorithm first. Need a hint? You can find the algorithm on this page. Did you finish early? Want more? Try Man Girl Against Machine. LoopyLEDs We look at how computers repeat the same actions over and over using loops, and write a loopy program. We'll explore how and write a program that makes decisions. Decisions, Decisions! Computer programs can make decisions using the if statement. Constantly Variable: We investigate variables, then use numeric variables and buttons to write a score-keeping program for Rock Paper Scissors. Do you want to put that original program back? Here it is! Right-click the link to download the hex file to your computer, than copy it to the Micro:Bit "drive." We write our own program to display a smiley face, then change it to display a frown. Shake that Micro:Bit! Exploring, we find that the Micro:Bit comes pre-loaded with a program that includes a simple game. Remember, you can use the simulator at home: Mar 31 Keeping Score Who's the best at Pong? We'll add scoring to our game to find out.Bouncing Off the Walls We will add a ball to the game, and make it bounce off the "walls" at the sides of the game field, or, if the players are skillful, off the paddles! Paddling Around We add a couple of paddles to our Pong game and make them move using the keyboard. We'll use the handouts from Feb 17 and the slides from Feb 25. I mean Catch Up We'll get everyone on the same page so that we can finish the Pong game before the end of the classes. I've edited the slides to remove material we've already covered. The PyGames Continue! We pick up where we left off last time and investigate the circle program line by line so that we udnerstand every part. Let the PyGames Begin! We get started with Python, write and review a program to draw a circle, then begin building a Pong game for two players. Want an overview of Python? Here's Python Jump Start. Here's the proof: Scooping the Loop Snooper. The Halting Problem "looks computable," but it isn't. Algorithms and Searching: Why algorithms are more important than code. It's free, but be careful to un-check the boxes that will install bloatware on your computer. Maybe you'd like to print two or more on each page to save paper and ink. Google Chrome will open these for you automatically. I've put the material from all the classes here so that it's easy to go back to anything you'd like to check again. I'm having a lot of fun at McNair Middle School helping students in all three grades learn about computers, algorithms, and coding. Sixth grade: There's no way to do Spheros by remote control, but I[ve given you something you can do at home using Scratch.: Can you figure out a way to work with your partner while you're stuck at home? What about Google Hangouts? (When I was in high school, my friends and I did homework over the phone. Remember, you can use the simulator at home if you have a ChromeBook, laptop, or desktop computer. Seventh grade: I've given you a whole pile of work to do! See the March 17 item below to get started writing another game for the Micro:Bit.(As far as I know, there's no way to do this with a ChromeBook.) You don't need to type it again I've put a copy here for you. I wanted you to type it the first time so you could begin learning Python. You will also have to enter the code you typed into the school laptops. I have instructions for Windows 10 computers. Eighth grade: The March 17 handout is below you can do this from home, although you will have to install Python.Remember, you can send email to me as long as you also copy Dr. I'll try to keep going through this web page. If not, I get a vacation! (But, I like you and I'd rather work with you by remote control than veg out, so write to me, OK?) March 16: Hello, McNair Students!Ībout the only thing worse than being out of school when you're sick and can't do anything or go anywhere is being out of school when you're well, but you still can't do anything or go anywhere. If I hear from you, I'll keep updating this material. If you are a McNair Middle School student and you're checking these pages while school is closed, please let me know by sending me email: and tell me what grade you're in don't forget to copy Dr.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |