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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址