Alice 3 Programming Assessment: Inheritance

Slides:



Advertisements
Similar presentations
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010 modified July 2011.
Advertisements

Alice Learning to program: Part Four Creating Sounds, Making Billboards, Fun with 3-D Text, New Events, and Rotating Objects by Ruthie Tucker and Jenna.
Alice Programming Assessment: Parameters Samantha Huerta Under the direction of Professor Susan Rodger Duke University July 2014.
Vehicle Property and Inheritance By Ruthie Tucker, under the direction of Professor Susan Rodger, Duke University, 2008.
Lets Play Catch! Keeping Score in Alice By Francine Wolfe Duke University Professor Susan Rodger May 2010.
SETTING UP CAMERA VIEWS LESSON Setting camera views using objects, based on a lesson by Bella. Adventures in Alice Susan Rodger Duke University July 2013.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University Feb. 24, 2007.
Methods Tutorial: Part One By Deborah Nelson Duke University Under the direction of Professor Susan Rodger June 9, 2008.
Scene Change - Starter World Samantha Huerta under the direction of Professor Susan Rodger Duke University June 2014.
Lights Camera Action! Part 2: Controlling Light in Alice By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June 2009.
Changing Camera Views! Part 2: Simple Scene Change & Lighting Fixes By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July.
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Camera Control: Learning to Use the Camera in Alice By Henry Qin, edited by Jenna Hayes under the direction of Professor Susan Rodger Duke University,
Teaching a character to walk in more than one world: Parameters and Inheritance. By Lana Dyck under the direction of Professor Susan Rodger Duke University.
Methods Tutorial: Part Two By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
An Introduction to Alice (Short Version) – Extras! Yossra Hamid Under the Supervision of Professor Susan Rodger Duke University, June 2014 This is a continuation.
Simple Quiz Assessment David Yan Under the direction of Susan Rodger Duke University June 2015.
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops Susan Rodger Duke University July 2011.
Can I get your number? By Melissa Dalis Professor Susan Rodger Duke University June 2011.
The Essentials of Alice (Bunny) By Jenna Hayes under the direction of Professor Susan Rodger Duke University July 2008.
1 Quiz Template: Using the ‘ask user’ functions By Deborah Nelson Duke University Under the direction of Professor Susan Rodger July 2009.
Creating a 3D Interactive Story Prof. Susan Rodger Duke University July 19, 2007.
Tutorial on Kangaroo visiting his animal friends - parameters, events Susan Rodger Duke University June 2009.
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko under the direction of Professor Susan Rodger Duke University July 2013 Updates.
Distance Challenge By: Chris Brown Under the direction of Prof. Susan Rodger Duke University, January 2013.
BDE Assessment Erin Taylor Under the direction of Susan Rodger Duke University June 2015.
An Introduction to Alice By Chris Brown under the direction of Professor Susan Rodger Duke University, March 2013.
Repetition everywhere – comparing while in a method and as an event Susan Rodger Duke University July 2010.
Creating a Fancier Chicken to use in several worlds - Inheritance Susan Rodger Duke University June 2009.
Using Placeholders to Simplify your Methods: Learning Methods, Part 2 By Deborah Nelson Duke University Professor Susan Rodger June 16, 2008.
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events By Elizabeth Liang under the direction of Professor Susan Rodger Duke University June.
Transformations Challenge By Yossra Hamid Under the supervision of Professor Susan Rodger Duke University June 2014.
Alice Programming Assessment: Random Number Variables Alex Boldt Under the direction of Professor Susan Rodger Duke University May 2015.
Tutorial on Bunny visiting his animal friends - parameters, events for Alice 3 Susan Rodger Duke University June 2009 Updated by Yossra Hamid on October.
Looping Assessment Erin Taylor Under the direction of Susan Rodger Duke University June 2015.
Jonathon Kuo Under the Direction of Dr. Susan Rodger
The Essentials of Alice (Bunny)
Getting Started With Alice: The Basics
A Simple Quiz for Alice 3.2:
An Introduction to Alice (Short Version)
Teaching Characters to Walk: Learning Methods, Part 1
Sharing Alice 3 Jonathon Kuo under the direction of Dr. Susan Rodger
Event Listener Assessment
Professor Susan Rodger
Changing Camera Views! Part 1: Set Point of View to By Bella Onwumbiko
Bunny Eat Broccoli Repetition – Simple loops and Conditional loops
Importing a PPT page as Billboard Alice 3 Tricks in Mini Trivia (3/4)
Assessment for Interaction with User
Alice 3 Looping Assessment
Making Objects Move in Unison: Using Lists
Tutorial on Kangaroo visiting his animal friends - parameters, events
Making Objects Move in Unison: Using Lists
A Simple Quiz for Alice 3.2:
Methods Tutorial: Part Two
Objects in Alice: Positioning and Moving Them
Alice 3 Programming Assessment: Parameters
Checking for Collisions: Using Functions in Alice
Learn a bit about Computer Science Duke Femmes Event with Prof
An Introduction to Alice
Princess & Dragon Part 3: A Knight Comes Riding In—Cameras & Events
How Tall Are You? Introducing Functions
Alice 3 Programming Assessment: Decisions and the Use of Functions
Alice 3 Programming Assessment: Lists
Headshots in Alice Duke University Professor Susan H. Rodger
Professor Susan Rodger
Getting Started With Alice: The Basics
Alice and Daisies: Positioning and Moving Objects in Alice
Using Placeholders to Simplify your Methods: Learning Methods, Part 2
Alice Programming Assessment: Lists
Alice Programming Assessment: Inheritance
Presentation transcript:

Alice 3 Programming Assessment: Inheritance Jonathon Kuo Under the direction of Professor Susan Rodger Duke University June 2017

Assessment Overview This assessment is designed to cover the topic of inheritance in Alice 3 and how to create methods inheritable by multiple objects. It should take 15-20 minutes to complete this challenge. Before attempting this challenge, please complete the tutorial: “Creating a Fancier Fox and Inheritance in Alice 3.”

Starter World Open the inheritanceAssessmentStart.a3p world You will see that there are already objects in the world: caiman, cow, bear, arapaima, grass, and carp.

The Problem Our goal is to have each animal in the background eat the food in front of them by only writing one procedure and calling it three times. To do this, we will need to think about how to use inheritance! Hint: What do they all have in common?

Eat We need to write an “eat” procedure that all of the animals can access. Use a parameter for the food that is the lowest level type on the hierarchy that includes all the foods. For our purposes, eating will mean: Turning to face the food Moving a certain distance forward to be close to the food Having the food disappear

World.myFirstMethod In order for our animals to eat their food, we will need to have a call to our eat method from each of the background animals in our myFirstMethod If all the animals do not have access to your eat method, then you need to think about the inheritance again.

Completion Press play and each of the animals should turn to face their food, move toward their food, and the food should disappear. If this happens, the assessment is complete! You can check with the sample solution online.