Giter Site home page Giter Site logo

gol's Introduction

gol

A Zellij plugin for enjoying the Conway's game of life.

usage

Usage

  • s start
  • r reset
  • Up and Down or j and k to change the density of the random initial population
  • Left and Right or h and l to change the time speed

Why?

Why not?

More seriously, it is actually quite fun to play around with the game of life to get a feel for the idea of emergence, as you play with different speeds and densities you will notice that certain configurations seem "noisy" while simply changing the speed will bring a certain beautiful order out of the noise.

Installation

You'll need rust installed.

  • git clone [email protected]:Nacho114/gol.git
  • cd gol
  • cargo build --release
  • mkdir -p ~/.config/zellij/plugins/
  • mv target/wasm32-wasi/release/gol.wasm ~/.config/zellij/plugins/

Keybinding

Add the following to your zellij config somewhere inside the keybinds section:

shared_except "locked" {
    bind "Ctrl y" {
        LaunchOrFocusPlugin "file:~/.config/zellij/plugins/gol.wasm" {
            floating true
        }
    }
}

You likely already have a shared_except "locked" section in your configs. Feel free to add bind there.## Contributing

If you find any issues or want to suggest ideas please open an issue.

Development

Make sure you have rust installed then run:

zellij action new-tab --layout ./dev.kdl

Testing

To run tests:

cargo test --target aarch64-apple-darwin -- --nocapture

Replace the target the appropriate cpu architecture.

gol's People

Contributors

nacho114 avatar

Watchers

 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.