GithubHelp home page GithubHelp logo

davidkinder / xlife Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 3.0 6.07 MB

Windows port of the classic cellular automata program Xlife.

Home Page: http://davidkinder.co.uk/xlife.html

License: Other

C++ 9.93% C 87.41% Batchfile 0.05% Makefile 0.04% Roff 2.56%

xlife's Introduction

Xlife

Xlife is a clever implementation of John Conway's 'life' cellular automata, originally written for Unix workstations back in the mid 1980s by Jon Bennett. It was one of the first implementations to try something other than a naive approach, which results in it being able to handle huge patterns on relatively modest computers, such as Bill Gosper's famous breeder pattern, which grows without limit.

For those unfamiliar with Xlife, press 'l' to load a file (a good example is "breeder") then press 'g' to start generating. For a list of all commands, press '?'.

This is a straight port of XLife 3.5 to Microsoft Windows. No attempt has been made to modify the program to be more like a Windows application; the object of the exercise was to get XLife to compile under Windows without modifying the source code in any way. This has been achieved using a simple X11 emulation library (X11Lib) to implement enough of the X11 standard (plus a few Unix functions) to get XLife to run.

Xlife 3.5 was written by Achim Flammenkamp, based on Paul Callahan's Xlife 3.0, which was in turn derived from Jon Bennett's Xlife 2.0. Xlife 3.5 is greatly superior to the more widely available Xlife 5.0, which is based on a different set of sources, and contains many bugs.

Xlife running the breeder pattern

Building

Download and install Visual Studio 2019 Community edition from https://visualstudio.microsoft.com/. In the installer, under "Workloads", make sure that "Desktop development with C++" is selected.

Install git. I use the version of git that is part of Cygwin, a Linux-like environment for Windows, but Git for Windows can be used from a Windows command prompt.

Open the environment that you are using git from (e.g. Cygwin), and switch to the root directory that the build environment will be created under. Clone this repository with git:

git clone https://github.com/DavidKinder/Xlife.git

Start Visual Studio, open the solution "Xlife35/source/Xlife35.sln", then build and run the "Xlife35" project.

xlife's People

Contributors

davidkinder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.