<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CS1_-_1011_-_December</id>
	<title>CS1 - 1011 - December - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.paulbui.net/wiki/index.php?action=history&amp;feed=atom&amp;title=CS1_-_1011_-_December"/>
	<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CS1_-_1011_-_December&amp;action=history"/>
	<updated>2026-11-16T13:20:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.8</generator>
	<entry>
		<id>https://www.paulbui.net/wiki/index.php?title=CS1_-_1011_-_December&amp;diff=6796&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;== Thursday - Friday (12/23/10 - 12/31/10) == * Non-denominational Winter Break  == Tuesday - Wednesday (12/21/10 - 12/22/10) == &#039;&#039;&#039;Agenda:&#039;&#039;&#039; * Make sure you have a completed &quot;f...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.paulbui.net/wiki/index.php?title=CS1_-_1011_-_December&amp;diff=6796&amp;oldid=prev"/>
		<updated>2011-01-07T15:23:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Thursday - Friday (12/23/10 - 12/31/10) == * Non-denominational Winter Break  == Tuesday - Wednesday (12/21/10 - 12/22/10) == &amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039; * Make sure you have a completed &amp;quot;f...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Thursday - Friday (12/23/10 - 12/31/10) ==&lt;br /&gt;
* Non-denominational Winter Break&lt;br /&gt;
&lt;br /&gt;
== Tuesday - Wednesday (12/21/10 - 12/22/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Make sure you have a completed &amp;quot;following game,&amp;quot; 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:&lt;br /&gt;
*# Go to section 8.8 in [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]&lt;br /&gt;
*# Copy &amp;amp; paste the code&lt;br /&gt;
*# Make the following changes/additions to the code&lt;br /&gt;
*## The ball should not go beyond the right side of the screen&lt;br /&gt;
*## The ball should bounce off the right and left sides of the screen&lt;br /&gt;
*## The mitt should be able to also move right and left&lt;br /&gt;
* EVERYBODY must then go through their &amp;quot;following game&amp;quot; code and comment all the lines before break&lt;br /&gt;
&lt;br /&gt;
== Monday (12/20/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Pong]]&lt;br /&gt;
&lt;br /&gt;
== Friday (12/17/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Read and walk through [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]&lt;br /&gt;
* Begin working on [[Pong]]&lt;br /&gt;
&lt;br /&gt;
== Tuesday - Thursday (12/14/10 - 12/16/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Demo [[Looping with GASP Exercises]]&lt;br /&gt;
* Read and walk through [http://openbookproject.net/thinkcs/python/english2e/ch08.html Case Study: Catch]&lt;br /&gt;
** Basic ball motion&lt;br /&gt;
** Ball bouncing&lt;br /&gt;
** Keyboard control&lt;br /&gt;
** Combining the above--follow the ball around!&lt;br /&gt;
* [[Pong]]&lt;br /&gt;
&lt;br /&gt;
== Friday - Monday (12/10/10 - 12/13/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Copy and paste the following code&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;Python&amp;quot;&amp;gt;&lt;br /&gt;
from gasp import *          # import everything from the gasp library&lt;br /&gt;
&lt;br /&gt;
begin_graphics()            # open the graphics canvas&lt;br /&gt;
&lt;br /&gt;
Box((20, 20), 100, 100)     # the house&lt;br /&gt;
Box((55, 20), 30, 50)       # the door&lt;br /&gt;
Box((40, 80), 20, 20)       # the left window&lt;br /&gt;
Box((80, 80), 20, 20)       # the right window&lt;br /&gt;
Line((20, 120), (70, 160))  # the left roof&lt;br /&gt;
Line((70, 160), (120, 120)) # the right roof&lt;br /&gt;
&lt;br /&gt;
update_when(&amp;#039;key_pressed&amp;#039;)  # keep the canvas open until a key is pressed&lt;br /&gt;
end_graphics()              # close the canvas (which would happen&lt;br /&gt;
                            # anyway, since the script ends here, but it&lt;br /&gt;
                            # is better to be explicit).&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* 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?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Thursday (12/9/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* IBCS1 course code change sign-up&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* Introduction to GASP (graphics with Python)&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Wednesday (12/8/10/) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Prompt the user for a number &amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Print out the first N terms of the following sequence:&lt;br /&gt;
** 1, 4, 9, 16, 25, 36, ...&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* Introduction to GASP (graphics with Python)&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Tuesday (12/7/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Write a loop that runs 30 times (using &amp;#039;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;#039; as a counter variable)&lt;br /&gt;
## Inside the loop, print x*&amp;quot; &amp;quot;,&amp;quot;*&amp;quot;&lt;br /&gt;
## Don&amp;#039;t forget to increment your counter variable&lt;br /&gt;
# Write another loop that runs from 30 down to 0&lt;br /&gt;
## Inside the loop, print x*&amp;quot; &amp;quot;,&amp;quot;*&amp;quot;&lt;br /&gt;
## Don&amp;#039;t forget to decrement your counter variable&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* IBCS1 course code change sign-up&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* Introduction to GASP (graphics with Python)&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Monday (12/6/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Initialize a counter variable &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; to 1&lt;br /&gt;
# Create another variable &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039; that starts at 1 also&lt;br /&gt;
# Create a loop that runs up to 1000&lt;br /&gt;
## print out &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039; on the same line (use a comma)&lt;br /&gt;
## save &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
## increment &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* What happens when you execute the above code?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* IBCS1 course code change sign-up&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* Introduction to GASP (graphics with Python)&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Friday (12/3/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Initialize a counter variable &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; to 1&lt;br /&gt;
# Create another variable &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039; that starts at 1 also&lt;br /&gt;
# Create a loop that runs up to 1000&lt;br /&gt;
## print out &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
## save &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; into &amp;#039;&amp;#039;&amp;#039;old_i&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
## increment &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
* What happens when you execute the above code?&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* [http://www.asciimation.co.nz/ ASCII Star Wars]&lt;br /&gt;
* [[Print Shapes Exercises]]&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Thursday (12/2/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Prompt the user for a number &amp;#039;&amp;#039;&amp;#039;N&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Initialize a counter variable named &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; to 0&lt;br /&gt;
# Using a loop, print out all the numbers up to N&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Early release today&lt;br /&gt;
* Demo missing [[Print Shapes Exercises]]&lt;br /&gt;
* [[Looping Exercises]]&lt;br /&gt;
* Introduction to GASP (graphics with Python)&lt;br /&gt;
* [[Looping with GASP Exercises]]&lt;br /&gt;
&lt;br /&gt;
== Wednesday (12/1/10) ==&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Warmup:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Create a loop counter variable &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; that starts at 0&lt;br /&gt;
* Write a loop that counts down from 0 through -10 (What would the condition be?)&lt;br /&gt;
** Print &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039; inside the loop&lt;br /&gt;
** Don&amp;#039;t forget to decrement &amp;#039;&amp;#039;&amp;#039;i&amp;#039;&amp;#039;&amp;#039;!&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Agenda:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
* Demo missing Chapter 5 Exercises&lt;br /&gt;
* [[Guessing Game Assignment]]&lt;br /&gt;
* [[Print Shapes Exercises]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>