Game of Life? Was Re: Go
Torsten.Bergmann at phaidros.com
Torsten.Bergmann at phaidros.com
Thu Apr 13 14:24:57 UTC 2000
I looked into my personal squeak archive.
Here is the game and the mail.
Torsten
-----Original Message-----
From: Dan Ingalls [mailto:Dan.Ingalls at disney.com]
Sent: Donnerstag, 13. April 2000 16:18
To: squeak at cs.uiuc.edu
Subject: Re: Game of Life? Was Re: Go
Folks -
Someone asked about this a year ago, and I sent out a file. Check the mail
archives.
- Dan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BBLife-di.cs
Type: application/octet-stream
Size: 2837 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000413/faece261/BBLife-di.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NewLifeMorph.cs
Type: application/octet-stream
Size: 3297 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20000413/faece261/NewLifeMorph.obj
-------------- next part --------------
Von: Dan Ingalls [Dan.Ingalls at disney.com]
Gesendet: Wednesday, December 01, 1999 7:02 PM
An: Gerardo Richarte
Betreff: Re: Life
> Does anybody have an implementation of life for Squeak?
>
> The point is: I've done one, using BitBlt, or Form, or Canvases or
>something like one of those (I don't remember which). The cells where
>directly pixels, and I used pixelValueAt: aPoint (I think) to access it.
>I tried this approach becouse I think that it'll faster to access, and
>ofcourse faster to draw on the screen... but it's still slow.
> My intention is to make an infinite life field (without bounds).
> So... does anybody have a fast implementation of this?
I don't know if this is what you want, but here's s port to Squeak of my BitBlt Life program that first appeared in the August 1981 isue of Byte magazine.
To run it, execute...
Display restoreAfter: [(Life new size: 400) run].
This will run noticeably faster if you set your display depth to 1.
It does a 400x400 generation in 43ms on my 250MHz G3.
Enjoy
- Dan
More information about the Squeak-dev
mailing list
|