Objective: Gain additional experience with abstraction by breaking a complex problem into smaller pieces.
For this lab you will be following the steps from Topic 4: Advanced Building - Abstraction and Testing, with a few small modifications.
- When you start, skip ahead to the "Sum Things Up" step open the project in there. Save this project as lab4 in the Cloud. Then go back and work from the beginning adding ALL blocks that you create to this lab4 project. You will be turning that in at the end and you will need to have all of your work in one project.
- When you get to the tic-tac-toe step, it is fine to open up that project to see what it does, but remember to swtich back to your lab4 project you created in step one before writing any new code. You need everything to be in that one project (lab4).
- Skip the "Validate date" step. You are welcome to go back and play with that one later if you have time and interest.
- Stop at the end of the Brick Wall activity after completing all 3 of the challenges. (We will come back to the last part, in preparation for the final project. You are of course welcome to look it over now.)
When you are done, export your project as XML, name the file, lab4.xml. This should include
- sum of 3 addition block, sum of two smallest block, Are any equal? block,
- your corrected 3, sum of numbers between x and y blocks
- your tic-tac-toe board drawing block, and
- your brick wall drawing block.
The script for your lab4 sprite should look something like the image below, with all of the blocks above placed in the script for easy testing. Of course your blocks may differ in small ways, especially the "draw a brick" block.
Due: Tuesday, May 2 @ 5pm
Due: Tuesday, May 2 @ 5pm