Professor Ira Fay Class 6
Mining survey feedback 2D arrays Objects Part 1 walkthrough
Stand up Learn the name of someone you don’t know Sit down
Please post website and GitHub link to the shared Google doc BSuBEUG6xb08D3WJqiw0eRso2Kqe37OwpDh CJAf8 Thank you to everyone who submitted it already.
4 Hampshire students haven’t completed it Five College students can me
Walkthroughs In-class lab time TAs and TA hours Guest speakers
In-class discussion on project-specific topics Internet searching is hard Want more lab time
Mining 7 just right, 1 too easy, 2 too hard, 1 variable Class overall 7 just right, 2 too slow, 1 too fast, 1 variable
Average: 14 hours Min: 4 Max: 45 Ira’s design goal: ~6 hours per week = 24 total
Resourcefulness Learning Unity Learning C# programming concepts Some advanced concepts missing
ResourceUsed (out of 12) Walkthroughs11 Jen11 Internet10 Isaiah9 Other students6 Ira3
Balance of: Ira lecture/guest speaker Code demo specific to the project Lab time (majority here)
int[] temperatures = new int[5]; 01234
temperatures[0] = 58; key or index 58 value
int[] temperatures = new int[5]; temperatures[0] = 58; temperatures[1] = 60; temperatures[2] = 70; temperatures[3] = 68; temperatures[4] = 62;
int[,] birds = new int[5,4];
birds[0,0] = 3;
birds[4,3] = 2;
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int week = 0; week < 4; week++) { for (int day = 0; day < 5; day++) { birds[day,week] = Random.Range(0,10); }
day == 0 week == 0 birds[day,week]
day == 1 week == 0 birds[day,week]
day == 2 week == 0 birds[day,week]
day == 3 week == 0 birds[day,week]
day == 4 week == 0 birds[day,week]
day == 5 week == 0 birds[day,week]
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int week = 0; week < 4; week++) { for (int day = 0; day < 5; day++) { birds[day,week] = Random.Range(0,10); }
day == 0 week == 1 birds[day,week]
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int week = 0; week < 4; week++) { for (int day = 0; day < 5; day++) { birds[day,week] = Random.Range(0,10); }
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int day = 0; day < 5; day++) { for (int week = 0; week < 4; week++) { birds[day,week] = Random.Range(0,10); }
day == 0 week == 0 birds[day,week]
day == 0 week == 1 birds[day,week]
day == 0 week == 2 birds[day,week]
day == 0 week == 3 birds[day,week]
day == 0 week == 4 birds[day,week]
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int day = 0; day < 5; day++) { for (int week = 0; week < 4; week++) { birds[day,week] = Random.Range(0,10); }
day == 1 week == 0 birds[day,week]
int[,] birds = new int[5,4]; // Watch for a random number of birds // over 5 days for 4 weeks. for (int week = 0; week < 4; week++) { for (int day = 0; day < 5; day++) { birds[day,week] = Random.Range(0,10); }
int maxDays = 5; int maxWeeks = 4; int[,] birds = new int[maxDays,maxWeeks]; // Watch for a random number of birds // over maxDays for maxWeeks. for (int week = 0; week < maxWeeks; week++) { for (int day = 0; day < maxDays; day++) { birds[day,week] = Random.Range(0,10); }
Questions?
An approach to programming, a way of thinking about code Objects contain data (often called attributes) and can do things (often called methods)
Human Age Eye Color Preferred Pronoun etc. Methods Eat() Sleep()
Professor College name Title Office hours etc. Methods Teach()
Unity is built using this approach Behaviour.html
Transportation Part 2: Create a new class for the airplane
Creating an airplane class Transportation Part 1 walkthrough
Submit Transportation Part 1 via Google Doc Transportation Part 2 starts today Walkthrough appears 48 hours from now Complete Mining Survey if you haven’t already Jess Loeb interview on Wednesday
// Count from 1 to 9 for (int i = 1; i < 10; i++) { print (i); } // We could also use a while() loop int i = 1; while (i < 10) { print (i); i += 1; }
With a growth mindset, we can improve our skills through practicing. Learning happens over time, not instantly. The process of learning is uncomfortable when we’re not competent yet.
What files Unity creates What files are most important
Isaiah + team made a game over the summer!