using stop-when clause to end the simulation and to create a final scene
Mutation using set!
Look up big-bang in the help desk. Read section 2.4 of the help desk page that opens when you search for big-bangWorlds and the Universe: “universe.ss” up to and including sections 2.4.3.
Read Chapter 6 (pages 91-107) and chapter 18 (pages 247-254) in the book “Picturing Programs” (posted on the left side of this screen). They define functions without explicitly using lambda. Otherwise, the examples should be understandable. To run the examples, you should add the line (require picturing-programs) to the top of your code.
Writing functions that process and produce lists of posns.
Writing animations
big bang function
Look up big-bang in the help desk. Read section 2.4 of the help desk page that opens when you search for big-bangWorlds and the Universe: “universe.ss” up to and including sections 2.4.3.
Read Chapter 6 (pages 91-107) in the book “Picturing Programs” (posted on the left side of this screen). They define functions without explicitly using lambda. Otherwise, the examples should be understandable. To run the examples, you should add the line (require picturing-programs) to the top of your code.
Look up big-bang in the help desk. Read section 2.4 of the help desk page that opens when you search for big-bangWorlds and the Universe: “universe.ss” up to and including sections 2.4.3.
Read Chapter 6 (pages 91-107) in the book “Picturing Programs” (posted on the left side of this screen). They define functions without explicitly using lambda. Otherwise, the examples should be understandable. To run the examples, you should add the line (require picturing-programs) to the top of your code.
Sections 1.3-1.7 of HtDP 2nd edition. When looking at the examples in this book, remember that they define functions without explicitly using lambda. Otherwise the examples should be understandable.
Look up big-bang in the help desk. Read section 2.4 of the help desk page that opens when you search for big-bangWorlds and the Universe: “universe.ss” up to and including sections 2.4.3.
Functions created by define-struct: constructor, accessors, mutators, type-checker
Sections 6.1 and 6.3 in HtDP 1st edition. When looking at the examples in this book, remember that they define functions without explicitly using lambda. Otherwise the examples should be understandable.
Using a let expression as a slightly abbreviated form of local (information on the let expression can be found on pages 62-65 of Part 4 of our pdf notes, included with lecture 6).
Creating interactive programs involving random events and input from keyboard.
Sections 21.1 and 21.2 in HtDP 1st edition. When looking at the examples in this book, remember that they define functions without explicitly using lambda. Otherwise the examples should be understandable.