View this PageEdit this PageUploads to this PageVersions of this PageHomeRecent ChangesSearchHelp Guide

Squeak Projects

This page is for saving squeak projects.
Presently, to use these projects, you need to download them onto your computer.


clothing-combinatorics.008 copy.pr "Clothing combinatorics"

trafficlightImproved.pr implements a traffic light using a single timer.
The original version of the project differed in two ways:
  1. The traffic light looked a lot more like a real one
  2. Each light had its own timer. This was deemd a bad design, since with respect to communication with the outside, the trafficlight should have a variable that knows its state, not leave all of the behavior to the component lights. Morever, the trafficlight object should be telling the component lights whether they are on or off, not vice versa.

binsearch.pr Implements a standard binary search, so you can see how it is done.

Lenny-FactorTrees.pr Gives a nice solution to graphically showing the factorization of a number.

Grid Builder.pr A programming setup useful for building an 8-connected grid of an arbitrary size, useful for programming John Conway's Game of Life. This could also be useful for other projects, like say connected components in a binary image for computer vision purposes.

Grid Life.pr John Conway's Game of Life, implemented using the Grid Builder setup. Allows you to see the grid updating in a sort of scan-line oriented fashion. I don't trust tellAllSiblings anymore because I think it does nasty things like call objects that are in the trash. Also, there's no good way to know when its finished.

Merge Sort.pr Basically an array of numbers with merge sort implemented visually using tail recursion. First, you call a script "divide" which separates the holder array into halves until it contains only one element. Then, starting from the bottom the smaller holders up-call a script "conquer" to do the merging. I explicitly program the loops for moving elements around using "do" from the scripting pane.

Various Squeak projects by Dave
Spinner A random spinner. It doesn't have a spinning animation yet.
Die A random die. It doesn't have a rolling animation yet.

Monte Carlo Integration.pr A graphical lesson teaching children about Monte Carlo Integration without advanced knowledge of computer science (only a basic understanding of geometry and probability/random numbers is required).

Link to this Page

  • hw-1-26 last edited on 27 January 2005 at 2:06:39 am by 12-221-97-163.client.insightBB.com