Skip to content

hartsp2000/alien_invasion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

:::::::::::::::::::: :: Alien Invasion :: ::::::::::::::::::::

Golang simulator for a theoretical alien invasion

FAQ for potential compilation errors (due to platform differences):

If there is a compliation error: go/pkg/mod/golang.org/x/sys@(etc..etc..etc)/unix/zsyscall_darwin_amd64.go:##:##: //go:linkname must refer to declared function or variable, run the following command to update the package:

$ go get -u golang.org/x/sys

If there is a compilation error: $GOPATH/go.mod exists but should not, unset the GOPATH:

$ unset GOPATH

TLDR; To build and run it:

  1. Build it from github cloned folder:

$ make

  1. Run it FAST (without graphics for large worlds)

$ bin/alien_invasion -refresh 1ns -aliens 6 -distance 3 -moves 10000

  1. Run it (with graphics for small worlds)

$ bin/alien_invasion -refresh 150ms -aliens 6 -distance 3 -moves 500 -gfx

  1. Help (With explanation of all arguments (including input/output file options)

$ bin/alien_invasion -help

Cleaning:

$ make clean

Building/Compiling:

$ make

Formatting:

$ make format

Vetting:

$ make vet

About

Golang simulator for a theoretical alien invasion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published