15110 Summer 2015

Lab 1


IMPORTANT RULES FOR ALL LABS

In order to receive credit for lab, you must attend your lab section and submit your work during that lab. You cannot attend another lab section, and you cannot submit from elsewhere (e.g. your dorm room). We want you to go to lab since you will get additional information from your course assistant that will help you, and you will be able to work with other students to share ideas and learn how to solve problems more effectively. It is also important to go to lab and use the Linux machines since your lab exams will be run on these machines so you need to familiarize yourself with this environment.

If you go to a different lab section or submit the work early or late, you will receive a 0. You are allowed to drop 2 labs without penalty, so please do not ask for makeups. Look ahead at your schedule to see if you will be missing a lab due to another event and plan on dropping that lab. If you drop a lab, you are still responsible for reviewing the material covered. (Note: You must be in attendance for lab exams. Lab exams cannot be dropped.)


In this lab, you will review how to play different coding games from https://studio.code.org/ using the language Blockly. For each solution of a puzzle, you will learn to make a text file to handin your solutions.

Lab Format and Piazza Overview

  1. Explanation of our lab policy (see above)
  2. Explanation of how to use Piazza
  3. Explanation of what is acceptable to post on Piazza

TA Demonstrations

NOTE: In lab, you should actively be mirroring what you TA does on your own computer, and the examples MUST be handed in at the end of the lab.

  1. Using the website https://studio.code.org/hoc/1
  2. Example: Stage 9 Puzzle 6


  3. Explanation of how the code relates to the game.
  4. Example: Stage 11 Puzzle 3


  5. Creating a text file (.txt file) and storing solutions in stage11_puzzle3.txt using copy-paste

Student Activities

Solve the following puzzles using Blockly. For each puzzle, once you have a solution, create a text file that contains your solution and copy-paste the solution to the puzzle from online from the show code button.
  1. Stage 2 Puzzle 18 Please copy-paste solutions in stage2_puzzle18.txt
  2. Stage 2 Puzzle 20 Please copy-paste solutions in stage2_puzzle20.txt
  3. Stage 5 Puzzle 4 Please copy-paste solutions in stage5_puzzle4.txt
  4. Stage 17 Puzzle 7 Please copy-paste solutions in stage17_puzzle7.txt

Submit Your Lab Work

Create a zip file called lab1.zip that contains your text files, and submit it for grading using the handin instructions. Be sure that you create a zip file and not a compressed file in another format.

You should be zipping and submitting the following files:

  1. stage11_puzzle3.txt
  2. stage2_puzzle18.txt
  3. stage2_puzzle20.txt
  4. stage5_puzzle4.txt
  5. stage17_puzzle7.txt