Difference between revisions of "Computer Science I"

From WLCS
Line 6: Line 6:
 
*# Generate a random x variable
 
*# Generate a random x variable
 
*# Generate a random y variable
 
*# Generate a random y variable
*#
+
*# Load the image using your random x and y variables
<source lang="python">
+
*# <source lang="python">
# Load the image using your random x and y variables
 
 
img = Image("FILENAME", (x, y))
 
img = Image("FILENAME", (x, y))
 
</source>
 
</source>
 
*# Repeat steps 3-6 one hundred times
 
*# Repeat steps 3-6 one hundred times
 +
 +
'''Agenda - Regular:'''
 +
* Complete Pong
 +
* [[Item collection game]]
 +
 +
'''Agenda - IB:'''
 +
* Complete [[List Exercises]]
 +
* Recreate the [[Robot game]] using lists
 +
** You will create a list for all the X coordinates, a list for all the Y coordinates, and a list for all the Images
 +
** Use loops to cycle through all the lists
 +
** Within each of the loops, you can use if statements to check for collisions and the like
 +
* [[Dodge game]]
  
 
== Friday (4/17/09) ==
 
== Friday (4/17/09) ==
Line 36: Line 47:
 
** Within each of the loops, you can use if statements to check for collisions and the like
 
** Within each of the loops, you can use if statements to check for collisions and the like
 
* [[Dodge game]]
 
* [[Dodge game]]
 +
* Java, Java, Java
 +
** Check out the different syntax in Java: [[Media:IntroJava2.ppt]]
 +
* Receive your [http://www.eimacs.com eimacs] logins and attempt to login
 +
* Quickly read through Variables & Expressions: Integers, Doubles, Casting
 +
* Complete Test 1
  
 
== Wednesday (4/15/09) ==
 
== Wednesday (4/15/09) ==

Revision as of 08:10, 21 April 2009

Tuesday (4/22/09)

Warmup:

  • Creating a simple screensaver
    1. Go onto the Internets and find a small, school-appropriate picture
    2. Download the image to the same folder as where you will create the warmup python code
    3. Generate a random x variable
    4. Generate a random y variable
    5. Load the image using your random x and y variables
    6. img = Image("FILENAME", (x, y))
      
    7. Repeat steps 3-6 one hundred times

Agenda - Regular:

Agenda - IB:

  • Complete List Exercises
  • Recreate the Robot game using lists
    • You will create a list for all the X coordinates, a list for all the Y coordinates, and a list for all the Images
    • Use loops to cycle through all the lists
    • Within each of the loops, you can use if statements to check for collisions and the like
  • Dodge game

Friday (4/17/09)

Warmup:

  • Assume you have the following code, identify the final value of x
x = 1
y = 0
while y < 15:
  x += 2
  y += 1

Agenda - Regular:

Agenda - IB:

  • Complete List Exercises
  • Recreate the Robot game using lists
    • You will create a list for all the X coordinates, a list for all the Y coordinates, and a list for all the Images
    • Use loops to cycle through all the lists
    • Within each of the loops, you can use if statements to check for collisions and the like
  • Dodge game
  • Java, Java, Java
  • Receive your eimacs logins and attempt to login
  • Quickly read through Variables & Expressions: Integers, Doubles, Casting
  • Complete Test 1

Wednesday (4/15/09)

  • Complete missing assignments

Friday (4/3/09)

  • 3rd Quarter Exam

Wednesday (4/1/09)

Agenda:

  • Demo all completed assignments
  • 3rd Quarter Exam Review
    • Regular:
      • Loops
      • Strings
      • GASP!
    • IB:
      • Loops
      • Lists
      • GASP!

Archives