|
|
(937 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | == Tuesday (12/21/10) ==
| |
− | '''Agenda:'''
| |
− | * Make sure you have a completed "following game," where the mitt responds to the keyboard and can follow around a bouncing ball. If the mitt catches the ball then the game ends. If you do not have this game, then you must do the following:
| |
− | *# Go to section 8.8 in [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]
| |
− | *# Copy & paste the code
| |
− | *# Make the following changes/additions to the code
| |
− | *## The ball should not go beyond the right side of the screen
| |
− | *## The ball should bounce off the right and left sides of the screen
| |
− | *## The mitt should be able to also move right and left
| |
− | * EVERYBODY must then go through their "following game" code and comment all the lines before break
| |
− |
| |
− | == Monday (12/20/10) ==
| |
− | '''Agenda:'''
| |
− | * [[Pong]]
| |
− |
| |
− | == Friday (12/17/10) ==
| |
− | '''Agenda:'''
| |
− | * Read and walk through [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]
| |
− | * Begin working on [[Pong]]
| |
− |
| |
− | == Tuesday - Thursday (12/14/10 - 12/16/10) ==
| |
− | '''Agenda:'''
| |
− | * Demo [[Looping with GASP Exercises]]
| |
− | * Read and walk through [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]
| |
− | ** Basic ball motion
| |
− | ** Ball bouncing
| |
− | ** Keyboard control
| |
− | ** Combining the above--follow the ball around!
| |
− | * [[Pong]]
| |
− |
| |
− | == Friday - Monday (12/10/10 - 12/13/10) ==
| |
− | '''Warmup:'''
| |
− | * Copy and paste the following code
| |
− |
| |
− | <syntaxhighlight lang="Python">
| |
− | from gasp import * # import everything from the gasp library
| |
− |
| |
− | begin_graphics() # open the graphics canvas
| |
− |
| |
− | Box((20, 20), 100, 100) # the house
| |
− | Box((55, 20), 30, 50) # the door
| |
− | Box((40, 80), 20, 20) # the left window
| |
− | Box((80, 80), 20, 20) # the right window
| |
− | Line((20, 120), (70, 160)) # the left roof
| |
− | Line((70, 160), (120, 120)) # the right roof
| |
− |
| |
− | update_when('key_pressed') # keep the canvas open until a key is pressed
| |
− | end_graphics() # close the canvas (which would happen
| |
− | # anyway, since the script ends here, but it
| |
− | # is better to be explicit).
| |
− | </syntaxhighlight>
| |
− |
| |
− | * Try changing some of the numbers in the above Box() and Line() functions...what happens? What do you think each of those numbers/arguments corresponds to?
| |
− |
| |
− | '''Agenda:'''
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Thursday (12/9/10) ==
| |
− | '''Agenda:'''
| |
− | * IBCS1 course code change sign-up
| |
− | * [[Looping Exercises]]
| |
− | * Introduction to GASP (graphics with Python)
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Wednesday (12/8/10/) ==
| |
− | '''Warmup:'''
| |
− | * Prompt the user for a number '''N'''
| |
− | * Print out the first N terms of the following sequence:
| |
− | ** 1, 4, 9, 16, 25, 36, ...
| |
− |
| |
− | '''Agenda:'''
| |
− | * [[Looping Exercises]]
| |
− | * Introduction to GASP (graphics with Python)
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Tuesday (12/7/10) ==
| |
− | '''Warmup:'''
| |
− | # Write a loop that runs 30 times (using '''x''' as a counter variable)
| |
− | ## Inside the loop, print x*" ","*"
| |
− | ## Don't forget to increment your counter variable
| |
− | # Write another loop that runs from 30 down to 0
| |
− | ## Inside the loop, print x*" ","*"
| |
− | ## Don't forget to decrement your counter variable
| |
− |
| |
− | '''Agenda:'''
| |
− | * IBCS1 course code change sign-up
| |
− | * [[Looping Exercises]]
| |
− | * Introduction to GASP (graphics with Python)
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Monday (12/6/10) ==
| |
− | '''Warmup:'''
| |
− | # Initialize a counter variable '''i''' to 1
| |
− | # Create another variable '''old_i''' that starts at 1 also
| |
− | # Create a loop that runs up to 1000
| |
− | ## print out '''i''' and '''old_i''' on the same line (use a comma)
| |
− | ## save '''i''' into '''old_i'''
| |
− | ## increment '''i'''
| |
− |
| |
− | * What happens when you execute the above code?
| |
− |
| |
− | '''Agenda:'''
| |
− | * IBCS1 course code change sign-up
| |
− | * [[Looping Exercises]]
| |
− | * Introduction to GASP (graphics with Python)
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Friday (12/3/10) ==
| |
− | '''Warmup:'''
| |
− | # Initialize a counter variable '''i''' to 1
| |
− | # Create another variable '''old_i''' that starts at 1 also
| |
− | # Create a loop that runs up to 1000
| |
− | ## print out '''i''' and '''old_i'''
| |
− | ## save '''i''' into '''old_i'''
| |
− | ## increment '''i'''
| |
− |
| |
− | * What happens when you execute the above code?
| |
− |
| |
− | '''Agenda:'''
| |
− | * [http://www.asciimation.co.nz/ ASCII Star Wars]
| |
− | * [[Print Shapes Exercises]]
| |
− | * [[Looping Exercises]]
| |
− |
| |
− | == Thursday (12/2/10) ==
| |
− | '''Warmup:'''
| |
− | # Prompt the user for a number '''N'''
| |
− | # Initialize a counter variable named '''i''' to 0
| |
− | # Using a loop, print out all the numbers up to N
| |
− |
| |
− | '''Agenda:'''
| |
− | * Early release today
| |
− | * Demo missing [[Print Shapes Exercises]]
| |
− | * [[Looping Exercises]]
| |
− | * Introduction to GASP (graphics with Python)
| |
− | * [[Looping with GASP Exercises]]
| |
− |
| |
− | == Wednesday (12/1/10) ==
| |
− | '''Warmup:'''
| |
− | * Create a loop counter variable '''i''' that starts at 0
| |
− | * Write a loop that counts down from 0 through -10 (What would the condition be?)
| |
− | ** Print '''i''' inside the loop
| |
− | ** Don't forget to decrement '''i'''!
| |
− |
| |
− | '''Agenda:'''
| |
− | * Demo missing Chapter 5 Exercises
| |
− | * [[Guessing Game Assignment]]
| |
− | * [[Print Shapes Exercises]]
| |
− |
| |
| == Archives == | | == Archives == |
− | * [[CS1 - 1011 - November]] | + | * CS1 - 1819 (Poland) - APS Canvas |
− | * [[CS1 - 1011 - October]] | + | * CS1 - 1718 (Poland) - APS Canvas |
− | * [[CS1 - 1011 - September]] | + | * CS1 - 1617 (Poland) - Google Classroom |
| + | ** [https://docs.google.com/a/apsva.us/document/d/1VnXYBgVIABKBGVYNuoQQ6E_6kUzcNah2TFlM5QgTOW0/edit?usp=sharing 2017 Syllabus] |
| + | * [https://sites.google.com/a/apsva.us/ocopcompsci/ CS1 - 1516 (MacLeod)] |
| + | * [[CS1 - 1415]] |
| + | * [[CS1 - 1314]] |
| + | * [[CS1 - 1213]] |
| + | * [[CS1 - 1112]] |
| + | * [[CS1 - 1011]] |
| + | * [[CS1 - 0910]] |
| + | * [[CS1 - 0809]] |
| + | * [http://www.paulbui.net/wl0708/cs1 CS1 - 0708] |
| + | * [http://www.paulbui.net/wl0607/cs1/schedule.html CS1 - 0607] |