[ENH] Randomized SameGame

Doug Way dway at mat.net
Tue Dec 28 08:25:27 UTC 1999


--0-1311135236-946369527=:61026
Content-Type: TEXT/PLAIN; charset=US-ASCII



I noticed that if I play SameGame from a saved image, it always goes
through the, er, same games, because the random number generator is never
reset to the date.

This changeset fixes things so that it is always truly randomized (based
on the date/time) whenever New Game is pressed.  (This is done by doing
"Collection initialize", oddly enough.)

Changeset is attached.

- Doug Way
  dway at mat.net

--0-1311135236-946369527=:61026
Content-Type: text/plain; name="RandomSameGame-dew.cs"
 ; x-mac-type="54455854"
 ; x-mac-creator="522A6368"
Content-Disposition: attachment; filename="RandomSameGame-dew.cs"
Content-Transfer-Encoding: imap_stub

0,2673,2,482,7,

--0-1311135236-946369527=:61026--





More information about the Squeak-dev mailing list