- Nim 100%
| src | add jumping till loop | |
| .gitignore | good enough | |
| README.md | add jumping till loop | |
| vife.nimble | enough learning for now, will do later | |
vife
vi-like editing of life-like cellular automata, but with a terrible name
I won't pretend this is anything special. I don't know anything about GoL. I only made this to learn Nim basics
And now that I think about it, it has nothing to do with vi either. It is fun to play with though
Installation
You will need Nim installed. Then simply:
git clone https://codeberg.org/rdsq/vife
cd vife
nimble install
And it should appear at ~/.nimble/bin/vife
Controls
Use hjkl or wasd to move the cursor (the // thing),
hold shift and press those same keys to flip the cells under the cursor.
Also press alt to jump and move faster!
You can press enter to flip the cell that's under the cursor,
but I don't know what's the point of it if you can move while doing it
Use the spacebar or n to advance to the next generation
or 1-9 keys to jump this number of generations.
Or N to jump to the boring part when it all settles in a loop,
though this code I wrote is inefficient, so it will take a sec
You can fill an area by pressing f.
Pressing and holding it is not recommended for obvious reasons
Another not very useful one is F with shift, which inverts the entire game grid
Options
You can add --wraparound to make the grid wrap around the edges
You can also use --scale to increase the scale of the playing field, though I am not sure why
Licence
Licensed under the EUPL