[Semi-OT] SmoothLife

General discussion for topics related to the FreeBASIC project or its community.
Post Reply
angros47
Posts: 2321
Joined: Jun 21, 2005 19:04

[Semi-OT] SmoothLife

Post by angros47 »

I found this project, https://sourceforge.net/projects/smoothlife/ that is an implementation of Conway's game of life using floating point values, and generalizing the algorithm. Since one of the implementations is in FreeBasic I think it should be mentioned here.
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: [Semi-OT] SmoothLife

Post by counting_pine »

I don't really understand what the code is doing. But it seems to compile and run OK, so
SmoothLifeFB_old.bas seems to be the most interesting of the three FB programs. (Without playing with the code or tweaking the constants, at least.)
But the Main SmoothLife program seems to be more interesting to watch.

Possibly the most helpful intro is his first blog post (SourceForge has a blogging section?!)
https://sourceforge.net/p/smoothlife/bl ... moothlife/

Seems like the basic trick is extending the radius of neighbours (Conway's Game of Life just had the 8 neighbouring pixels). I guess his version integrates over an area with a certain radius.
Whatever it does, it does seem to produce some pretty organic looking results.
https://youtu.be/rG9UXI8IS-o
lizard
Posts: 440
Joined: Oct 17, 2017 11:35
Location: Germany

Re: [Semi-OT] SmoothLife

Post by lizard »

Do you know Rosetta?

https://rosettacode.org/wiki/Conway%27s ... #FreeBASIC

They have a lot of FB stuff.
Post Reply