Skip to content

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

Notifications You must be signed in to change notification settings

noctilu/quadtree

Repository files navigation

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()

Releases

No releases published

Packages

No packages published

Languages