Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Open in Gitpod GoDoc

quadtree

Go implementation of a quadtree with Game of Life's hashlife algorithm.

Usage

// empty tree with level 2
qt := quadtree.EmptyTree(2)

// quadtrees are immutable, so each change gives you a new quadtree
qt = qt.SetCell(1, 1, 1)

// print tree to console, don't do that for bigger trees
qt.Print()

// calculates next generation
qtNext := qt.NextGen()

About

Go implementation of a quadtree with Game of Life's hashlife algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages