wator

command module
v0.0.0-...-91967b6 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 9 Imported by: 0

README

This is an implementation of the Wa-Tor (http://en.wikipedia.org/wiki/Wa-Tor) simulation.

wator.gif

I started this project as an exercise to learn the Go Programming Language so there will many newbie mistakes and non-idiomatic patterns. This project is probably not much use to anyone else except maybe to help people realize that there is an even less knowledgeable gopher out there.

Install

go install lazyhacker.dev/wator

Running

To run wator just run the wator binary that is built or go run lazyhaker.dev/wator.

Usage:
  -fbreed int
    	# of cycles for fish to reproduce. (default 400)
  -fish int
    	Initial # of fish. (default 1000)
  -height int
    	Height of the world (North-South). (default 240)
  -sbreed int
    	# of cycles for shark to reproduce. (default 150)
  -sharks int
    	Initial # of sharks. (default 500)
  -starve int
    	# of cycles shark can go with feeding before dying. (default 100)
  -width int
    	Width of the world (East - West). (default 320)

See it in your browser

See this running in your browser at https://lazyhacker.dev/wator.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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