Fun with cellular automatons, BoulderDash and the Watchdog!

Fun with cellular automatons, BoulderDash and the Watchdog!

The CELL-O-MAT artifact is some demo application featuring show-cases on cellular automatons being built with the REFCODES.ORG artifacts. It accomanies my talk at the JVM-Con 2018 [JCM-Con 2018], where I speak about “With swarm intelligence on Burglar Hunt

The funcodes.club provides some show-cases on cellular automatons with its source codes hosted at Bitbucket, including the CELL-O-MAT artifact. To try it out, download the cellomat.sh binary script and invoke it by calling ./cellomat.sh or java -jar cellomat.sh. It will start with a random cellular automaton and a random board (you will need at least a Java 8 installed).

Cellomat 01 Cellomat 02 Cellomat 03
Cellomat 04 Cellomat 05 Cellomat 06
Cellomat 07 Cellomat 08 Cellomat 09

Getting started

To get up and running, clone the funcodes-cellomat repository from bitbucket’s git repository.

How do I get set up?

Using SSH, go as follows to get the Maven CELL-O-MAT project:

1 git clone git@bitbucket.org:funcodez/funcodes-cellomat.git

Using HTTPS, go accordingly as follows to get the Maven CELL-O-MAT project:

1 git clone https://bitbucket.org/funcodez/funcodes-cellomat.git

Then you can build a fat-jar and launch the application:

1 cd funcodes-cellomat
2 mvn clean install
3 java -jar target/funcodes-cellomat-0.0.1-SNAPSHOT.jar

Big fat executable bash script (optional)

This step is optional, though when running your application under Linux, the following will be your friend:

To build a big fat single executable bash script, take a look at the shell-exec.sh script and the build.sh script respectively:

1 ./shell-exec.sh
2 ./target/cellomat.sh

The resulting cellomat.sh file is a big fat single executable bash script being launched via ./target/cellomat.sh.

Building and creating an executable bash script is done by calling ./build.sh!

Starting Cellomat

 1 ./cellomat.sh --help                     # Show a help message
 2 ./cellomat.sh                            # Start with a random cellular automaton and a random board
 3 ./cellomat.sh -b                         # Start with the BoulderDash cellular automaton and a random board
 4 ./cellomat.sh -b --console               # As above, in addition also print the current state to the console
 5 ./cellomat.sh -b --board CAVE_99_TESTRUN # Start with the BoulderDash cellular automaton and the 'CAVE_99_TESTRUN' board
 6 ./cellomat.sh -b --boards                # List all available BoulderDash boards
 7 ./cellomat.sh -w                         # Start with the Watchdog cellular automaton and a random board
 8 ./cellomat.sh -w --console               # As above, in addition also print the current state to the console
 9 ./cellomat.sh -w --board lecture         # Start with the Watchdog cellular automaton and the 'lecture' board
10 ./cellomat.sh -w --boards                # List all available Watchdog boards

Have fun playing around with the various CELL-O-MAT settings!

comments powered by Disqus