omaraboumrad/vim-life


Game Of Life - inside Vim

License: Apache-2.0

Language: Python


vim-life

Simple Game of Life within vim

See example on Asccinema:

Requirements

vim, +python

Installation

Using pathogen.

git clone https://github.com/omaraboumrad/vim-life.git ~/.vim/bundle

Usage

  • Load any existing sample available in the samples folder

    :e glider.txt
    
  • Or set up any N x M grid with # as the living cell and <space> as the dead cell

  • Run the simulation using :GOL
  • Interrupt the simulation using Ctrl+C
  • You can modify the grid at any point and run :GOL again.
  • You can call the GameOfLife(living, dead) function and pass it different characters. Example:

    call GameOfLife('O','+')
    

Project Statistics

Sourcerank 3
Repository Size 5.86 KB
Stars 1
Forks 0
Watchers 1
Open issues 0
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Omar Abou Mrad

Something wrong with this page? Make a suggestion

Login to resync this repository