[News][Staff] Conway's Game of Life!

Here you can find side projects of the staff and great projects which we think should get extra support. (Note that featured products are not products of MaxCoderz)

Moderator: MaxCoderz Staff

Post Reply
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

[News][Staff] Conway's Game of Life!

Post by tr1p1ea »

Conway's Game of Life!
------------------------------

Introduction:
----------------

This program will simulate the famed cellular automaton devised by the British
mathematician John Horton Conway in 1970, "The Game of Life".

Conway's "Game of Life" is the best known example of a cellular automaton.

This is a 'zero-player' game, the way in which it evolves is determined by its
initial state (in our case, a PIC). You simply create an initial PIC and then
observe how it evolves.

Basically what it does is take every pixel on the screen and applys some rules:

1: Any live cell with < 2 neighbours dies of loneliness
2: Any live cell with > 3 neighbours dies of overcrowding
3: Any dead cell with exactly 3 neighbours is bought to life
4: Any live cell with 2 or 3 neighours remains unchanged
Note: births and deaths can occur during 1 generation

More info can be found at: http://en.wikipedia.org/wiki/Conways_Game_of_Life


Features:
------------

*NEW* Algorithm - Fast!
Estimate ~10fps on 83(+), ~25fps on SE
Speed control (4 speeds: Min, 25%, 75%, Max)
Infinite yet enclosed universe via screen wrapping (can toggle on/off)
Uses TIOS PIC variables
PIC variables can be in RAM or ARCHIVE

Screenshots:
-----------------
scr1wh6.gif
scr1wh6.gif (2.3 KiB) Viewed 11400 times
scr2ij4.gif
scr2ij4.gif (29.97 KiB) Viewed 11400 times
scr3qi1.gif
scr3qi1.gif (293.16 KiB) Viewed 11400 times
Download:
--------------

http://www.ticalc.org/archives/files/fi ... 39705.html
Last edited by benryves on Sun 11 Jun, 2023 6:48 pm, edited 2 times in total.
Reason: Restored images
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Stickmanofdoom
Regular Member
Posts: 86
Joined: Fri 17 Dec, 2004 8:20 pm
Contact:

Post by Stickmanofdoom »

This is great stuff! Where's the source?
User avatar
elfprince13
Sir Posts-A-Lot
Posts: 234
Joined: Sun 11 Dec, 2005 2:21 am
Contact:

Post by elfprince13 »

uberness! any chance of source for those of us who like icons?
User avatar
kv83
Maxcoderz Staff
Posts: 2735
Joined: Wed 15 Dec, 2004 7:26 pm
Location: The Hague, Netherlands
Contact:

Post by kv83 »

really great program :)
Image
Clordio
New Member
Posts: 14
Joined: Thu 22 Feb, 2007 6:28 am

Post by Clordio »

Wow. Did you re-write it or did you modify the source for Ti-83? Either way that is some complicated math.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

It was rewritten, my routine is set up a lot different than the 86 implementation, and although the core is optimised more (shaved 200,000+ cc's/frame), and that mine supports true wrapping, the methodology is still essentially the same.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
Clordio
New Member
Posts: 14
Joined: Thu 22 Feb, 2007 6:28 am

Post by Clordio »

Wow, don't wanna be a beggar but uh..

will you teach me sensei?
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

You want to learn Conway's or ASM?

Here is an interesting one:

Image

EDIT - Some more! Oscillators (various periods) and Pinball :):

Image Image
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
blueskies
Calc Wizard
Posts: 553
Joined: Tue 25 Apr, 2006 2:24 pm

Post by blueskies »

Did you come up with these on your own, or are there well known game of life setups out there? Either way, WOW, those look cool.
User avatar
tr1p1ea
Maxcoderz Staff
Posts: 4141
Joined: Thu 16 Dec, 2004 10:06 pm
Location: I cant seem to get out of this cryogenic chamber!
Contact:

Post by tr1p1ea »

Well the first image i just drew a horizontal line in the middle :).

The others are documented patterns, but i dont know how widely known they are. The oscillators are cool 8).

There is a pretty sweet one that looks like a double-helix ... its a smidgen too big for the calc screen thouugh :(.
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."
Image
Image
User avatar
DigiTan
Calc Master
Posts: 1069
Joined: Fri 04 Mar, 2005 12:52 am
Location: NW Wisconsin
Contact:

Post by DigiTan »

Ew! They're all squishy looking!

heh heh. Good work tr1p1ea!
My diet consists of nails, code-stealers, and HP fans.
Projects:

Robot War [TI-82, TI Flash App]
Sonic the Hedgehog [Multiplatform]
Clordio
New Member
Posts: 14
Joined: Thu 22 Feb, 2007 6:28 am

Post by Clordio »

tr1p1ea wrote:You want to learn Conway's or ASM?
Either, ha. Mostly Conway's though. I just can't necessarily grasp it. I may not have high enough math for it. I'm only in Math 1050
User avatar
Madskillz
Calc Wizard
Posts: 745
Joined: Fri 17 Dec, 2004 10:22 pm
Location: Wandering around in the Jungle...
Contact:

Post by Madskillz »

Tr1p I didn't know you had made this. I saw it on ticalc, looked cool! As always I am ever more impressed by you.
The Revolution is here...
Post Reply