Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

taybin/goids

Repository files navigation

goids

Build Status Coverage Status Go Report Card

Boids in golang and javascript.

Install

yarn install
yarn build
go get -d
go build

Run

This creates a 200x200 space with no Z dimension. I've found a max-velocity of 5 seems to work well. The computation should be O(n log n) with n being number of boids. Feel free to play with other counts, velocities, and dimensions.

./goids --count=100 --max-velocity=5 -- -100:100 -100:100 0:0

Then open http://localhost:3000

Dev/Test

yarn buildw will watch for changes to the javascript files and rebuild static/bundle.js as appropriately.

go test or ginkgo will run the golang unittests

Thank You

About

Boids in golang and javascript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published