Skip to content

MaxBondABE/loaf-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Loaf: A language for Cellular Automata

Loaf is a programming language for expressing Cellular Automata rules.

Here is an example of Conway's Game of Life, written in Loaf.

environment := 2D
neighborhood := MOORE

states := {
    Alive::color(black)
    Dead::(default, color(white))
}

rules := {
    from Dead to Alive := neighborhood(Alive) == 3
    from Alive to Dead := neighborhood(Alive) < 2 | neighborhood(Alive) > 3
}

About

A language for cellular automata (Early WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages