Skip to content

coijanovic/alder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is part of a series of fun little programs I write to learn rust:

  • Alder: Conway's Game of Life
  • Balsa: Image to Emoji
  • Cedar: Auto snake game

Alder

Conway's Game of Life has been implemented a million times, so what's one more?

Running

To run, use cargo run . in the repo's root folder.

Configuration

The game can be configured via three contants in src/main.rs:

  • SIZE determines the size of the (square) playing field in characters. Choose a number that is at most equal to the minimum of your terminal's width and height.
  • CHANCE determines how likely a node is to be alive in the inital configuration.
  • SLEEP_INTERVAL determines how fast the game runs. The lower the number, the more often the field is updated.

About

Rust Diaries I: Minimal Rust implementation of Conway's Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages