Difference between revisions of "IB Computer Science 1"

From WLCS
(Thursday - Friday (4/20/17 - 4/21/17))
Line 1: Line 1:
 
== Thursday - Friday (4/20/17 - 4/21/17) ==
 
== Thursday - Friday (4/20/17 - 4/21/17) ==
 
'''Agenda:'''
 
'''Agenda:'''
* Ping w/ Objects
+
* Work on [https://docs.google.com/document/d/19wbHYrxSwuMyAqVs9lSUSieNncnAZfs0liFqO6rbYQM/edit?usp=sharing OOP: Ping]
*# Convert your Ping game so that it uses objects
 
*# Create a new sketch named PingWithObjects
 
*# Copy and paste your Ball class into a new tab in the sketch (separate classes should be in separate tabs)
 
*# Create a new class in a new tab named Paddle
 
*# Move all the Ping paddle attribute variables to the Paddle class
 
*# Define a default constructor in the Paddle class
 
*# Define a display() method that draws the paddle
 
*# Add methods moveLeft() and moveRight() to the Paddle class
 
*#* These methods should simply change the location attributes of the Paddle object
 
*# Go back to draw(), compare the mouse's coordinates to the paddle's coordinates, and move the Paddle object left or right accordingly
 
*# Complete and demo the PingWithObjects conversion
 
  
 
== Tuesday - Wednesday (4/18/17 - 4/19/17) ==
 
== Tuesday - Wednesday (4/18/17 - 4/19/17) ==

Revision as of 11:08, 20 April 2017

Thursday - Friday (4/20/17 - 4/21/17)

Agenda:

Tuesday - Wednesday (4/18/17 - 4/19/17)

Agenda:

  • Object & classes review
  • Emoji Assignment
    1. Add a new mood to your Emoji class
    2. In the main setup() and draw(), create multiple Emoji objects of different sizes, colors, and moods at different locations on the screen.
    3. Display and demo your program to Mr. Bui
  • Ping w/ Objects
    1. Convert your Ping game so that it uses objects
    2. Create a new sketch named PingWithObjects
    3. Copy and paste your Ball class into a new tab in the sketch (separate classes should be in separate tabs)
    4. Create a new class in a new tab named Paddle
    5. Move the Ping paddle attribute variables to the Paddle class
    6. Create a default constructor in the Paddle class
    7. Add methods moveLeft() and moveRight() to the Paddle class
    8. Complete and demo the PingWithObjects conversion

Monday - Friday (4/10/17 - 4/14/17)

  • Spring Break!

Friday (4/7/17)

Agenda:

  • Emoji Assignment
    1. Add a new mood to your Emoji class
    2. In the main setup() and draw(), create multiple Emoji objects of different sizes, colors, and moods at different locations on the screen.
    3. Display and demo your program to Mr. Bui
  • Ping w/ Objects
    1. Convert your Ping game so that it uses objects
    2. Create a new sketch named PingWithObjects
    3. Copy and paste your Ball class into a new tab in the sketch (separate classes should be in separate tabs)
    4. Create a new class in a new tab named Paddle
    5. Move the Ping paddle attribute variables to the Paddle class
    6. Create a default constructor in the Paddle class
    7. Add methods moveLeft() and moveRight() to the Paddle class
    8. Complete and demo the PingWithObjects conversion

Wednesday - Thursday (4/5/17 - 4/6/17)

Agenda:

  • Introduction to Objects Review
    • Emoji class walk-through
  • Object & Class Rules
    1. Separate classes in separate tabs or files
    2. Capitalize class names (e.g. Ball, Emoji)
    3. Remember to indent!
    4. Order of sections:
      • attributes
      • constructors
      • methods
    5. All class constructors and methods can access attributes
    6. Use common sense to organize which code happens in which methods (i.e. each method has a specific purpose, and it should only worry about that purpose)
  • Default constructor vs "specific" constructors
  • Ping w/ Objects
    1. Convert your Ping game so that it uses objects
    2. Create a new sketch named PingWithObjects
    3. Copy and paste your Ball class into a new tab in the sketch (separate classes should be in separate tabs)
    4. Create a new class in a new tab named Paddle
    5. Move the Ping paddle attribute variables to the Paddle class
    6. Create a default constructor in the Paddle class
    7. Add methods moveLeft() and moveRight() to the Paddle class
    8. Complete and demo the PingWithObjects conversion

Monday - Tuesday (4/3/17 - 4/4/17)

Agenda:

  • Complete and demo OOP: My First Object
  • Challenge: Create the Multiple Bouncing Balls using an array of Ball objects
  • Ping w/ Objects
    1. Convert your Ping game so that it uses objects
    2. Create a new sketch named PingWithObjects
    3. Copy and paste your Ball class into a new tab in the sketch (separate classes should be in separate tabs)
    4. Create a new class in a new tab named Paddle
    5. Move the Ping paddle attribute variables to the Paddle class
    6. Create a default constructor in the Paddle class
    7. Add methods moveLeft() and moveRight() to the Paddle class
    8. Complete and demo the PingWithObjects conversion

Archives