Constraint solving library
Nim
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
kiwi added constraintsCount Oct 13, 2017
tests fixed symbolics proc resolution (#1) Jun 15, 2017
.gitignore Initial commit Dec 30, 2016
.travis.yml Initial commit Dec 30, 2016
LICENSE Initial commit Dec 30, 2016
README.md Update README.md Dec 30, 2016
kiwi.nim Initial commit Dec 30, 2016
kiwi.nimble Initial commit Dec 30, 2016

README.md

kiwi Build Status nimble

A Nim port of the kiwi-java implementation of the Cassowary constraint solving algorithm

Usage

import kiwi

let s = newSolver()
let x = newVariable()
let y = newVariable()

s.addConstraint(x == 20)
s.addConstraint(x + 2 == y + 10)
s.updateVariables()

assert(x.value == 20)
assert(y.value == 12)

Links