goids

command module
v0.0.0-...-e589e2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 12 Imported by: 0

README

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

Documentation

Overview

Package main is a generated protocol buffer package.

It is generated from these files:

boid.proto

It has these top-level messages:

BoidPosition

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL