Skip to content

Running Experiments

Paolo "Nusco" Perrotta edited this page Jul 23, 2015 · 14 revisions

Here are a few advanced uses in case you really get serious with this program. All of this stuff is a work in progress, so it will change. Please don't expect anything to be stable until version 1.0.0.

How to run a long experiment

If you start narjillos with the -fast option, then it runs in Fast Mode: no graphics and parallel calculations. It's quite fast, especially if you run it on multiple cores.

Run narjillos --help to see other command-line arguments. In particular, you can use -p (or --persistent) to save the experiment to an .exp file every 10 minutes. If you interrupt the experiment for any reason, you can pass the name of this file as an argument to narjillos and pick up the experiment from the last saved state. This allows you to run very long experiments. My tipical workflow is:

  1. I start an experiment with narjillos --fast --persistent and let it run for a few hours.

  2. After a while, I kill the process, that leaves behind an .exp file (say, 774012997-0.3.0.exp).

  3. I load the file in narjillos to see what is happening:

     narjillos 774012997-0.3.0
    
  4. If I see interesting stuff, I exit the program and continue the experiment in Fast Mode (when you load from a file, it's automatically persisted, so you don't need the --persistent option):

     narjillos 774012997-0.3.0 --fast
    
  5. I go back to 2.

Experiments are deterministic. Each experiment has a name composed of a random seed, plus the current version of the application. Experiments with the same identifier will give exactly the same results over time.

Demo Mode

Press Ctrl+D to toggle Demo Mode. It's good when you just want to lay back and do some narjillo-watching: it selects a creature (or egg) at random, and it switches to a new one every few seconds.

Clone this wiki locally