AP CS Assignments
Assignments by week:
Fall Term:
Winter Term:
Spring Term:
Tuesday, March 26
Description
Welcome Back
Homework
  • Complete APCS 2018 FR #1
  • Read the Wikipedia article on Conway's Game of Life. The "cells" in the "world" are generated, destroyed, or preserved from one generation to the next. Make note of the rules for the game, and also how the world can be organized (fininte? infinite? toroidial?).
Thursday, March 28
Description
Exam Practice
Homework
  • Complete APCS 2018 FR #2
  • Begin work on the Game of Life lab. I've created two starter files for you to work on: ConwayGameOfLife.java and World.java. You only need to edit the World class; the other class handles all the GUI setup and timing. However, you are welcome to edit the main class to add extra features once the basic lab is finished.
Friday, March 29
Description
Homework
  • Complete APCS 2018 FR #3
  • Continue working on Game of Life lab. Due next Saturday at the end of class.
  • If you finish early, consider adding extra features to your program to make it more interesting:

    • Adding buttons or keypresses that auto-create patterns on the screen so you don't have to draw them by hand.
    • Allowing the user to load the world from a file.
    • Creating a sparse representation of the world (using a Map) so you don't waste memory on empty spaces.
    • Auto-resizing the world (instead of having it wrap).
    • Allowing the user to scroll, pan, or zoom a large world in the window.
    • Analyzing the world to see if its stagnant, and automatically injecting new cells to make the pattern change.