Homework 1: Mystery Snakes
Due: Tuesday September 10, 2019 at 9:00PM EST.

Handin
- Download your file and make sure it is called
snakes.arr
. Hand in your work on Gradescope. Look at this guide for directions.
- You may submit as many times as you want. Only your latest submission will be graded. This means that if you submit after the deadline, you will be using a late day – so do NOT submit after the deadline unless you plan on using late days.
- Do not put your name anywhere in any of the handin files. Doing so will result in a deduction.
- The README template can be found here
After completing the homework, you will submit:
If you are using late days, make sure to make a note of that in your readme. Remember, you may only use a maximum of 3 late days per assignment. If the assignment is late (and you do NOT have anymore late days) no credit will be given.
Setup
-
Set up code.pyret.org; this requires logging in with any Google account.
-
Make a new file in code.pyret.org called snakes.arr
.
-
Include this at the top of your file (in the Definitions Window):
include image
Helpful Things
Documentation
The Pyret Documentation is accessible from the Pirate button in the top left corner of code.pyret.org.
For this assignment, you will find the image documentation useful. We recommend briefly browsing this documentation before working on these problems!
You will need a text editor to edit your README. Link to template provided above. Any text editor is fine, and your laptop should already have one (TextEdit on Mac, NotePad on Windows). You could also install a more powerful text editor (such as Atom, instructions here), but this is not required. If you are still having a hard time, come to hours or post on Piazza!
Staff Assistance
Your friendly TAs and Professor are here to help with this assignment! You can find our schedule for office hours here.
What we will look for when grading
- We want accuracy in the shapes that are present, their general locations, sizes, and orientations.
- We do not care about exact positioning, size ratios, or angles, but make sure your snake patterns match the given patterns.
- We do not care about specific colors, but make sure the colors you use are distinguishable from one another. For example, you can use green and purple even if a snake is red and yellow, but don’t use green and dark green together. If you want to be accurate, a comprehensive list of color names can be found here. The same color may not be used more than once, per snake pattern.
The Assignment
Velma and Detective Pikachu are planning a journey to the zoo. They want to be able to identify mysterious snakes by their patterns so they know which ones are poisonous.
You will help them by writing code for four snake patterns so they can study!
Set up your code so that the four snake patterns are output on the right hand side when we press the run button. Make sure nothing else is output (no sub-images, numbers, strings, or otherwise).
When you are done, download the file and submit it following the instructions above.
The Mystery Snakes
Mystery Snake 1

Mystery Snake 2

Mystery Snake 3

Mystery Snake 4

README.txt
No additional responses required for this week! Still submit a README though (we use it to track late days and collaboration stuff)
Brown University CSCI 0111 (Fall 2019)
Do you have feedback? Fill out this form.
Homework 1: Mystery Snakes
Due: Tuesday September 10, 2019 at 9:00PM EST.
Handin
snakes.arr
. Hand in your work on Gradescope. Look at this guide for directions.After completing the homework, you will submit:
README.txt
snakes.arr
If you are using late days, make sure to make a note of that in your readme. Remember, you may only use a maximum of 3 late days per assignment. If the assignment is late (and you do NOT have anymore late days) no credit will be given.
Setup
Set up code.pyret.org; this requires logging in with any Google account.
Make a new file in code.pyret.org called
snakes.arr
.Include this at the top of your file (in the Definitions Window):
Helpful Things
Documentation
The Pyret Documentation is accessible from the Pirate button in the top left corner of code.pyret.org.
For this assignment, you will find the image documentation useful. We recommend briefly browsing this documentation before working on these problems!
You will need a text editor to edit your README. Link to template provided above. Any text editor is fine, and your laptop should already have one (TextEdit on Mac, NotePad on Windows). You could also install a more powerful text editor (such as Atom, instructions here), but this is not required. If you are still having a hard time, come to hours or post on Piazza!
Staff Assistance
Your friendly TAs and Professor are here to help with this assignment! You can find our schedule for office hours here.
What we will look for when grading
The Assignment
Velma and Detective Pikachu are planning a journey to the zoo. They want to be able to identify mysterious snakes by their patterns so they know which ones are poisonous.
You will help them by writing code for four snake patterns so they can study!
Set up your code so that the four snake patterns are output on the right hand side when we press the run button. Make sure nothing else is output (no sub-images, numbers, strings, or otherwise).
When you are done, download the file and submit it following the instructions above.
The Mystery Snakes
Mystery Snake 1

Mystery Snake 2

Mystery Snake 3

Mystery Snake 4

README.txt
No additional responses required for this week! Still submit a README though (we use it to track late days and collaboration stuff)