There are 3 executable programs in here:
simplified.go- a self-contained single program example solution. You can run this withgo run simplified.godirectly.anysolver/solve.go- a generic interactive solver that runs one of the solvers from the solver package.benchmark/bench.go- a benchmarking program to compare all of the solvers.
If you are using the STEP virtual machine (仮想マシン) then you already have Go installed and can skip ahead.
If you're using Mac OS X you'll have to download and install Go on your machine first. You can download it from https://golang.org .
The default installer on Mac OS X doesn't set up a GOPATH in your environment,
so it's using the default directory: ~/go .
solve.go and bench.go require that you have the step2019/idohazwordz packages
available in your $GOPATH. The easiest way
to do this is to run
go get github.com/step2019/idohazwordzThis will clone this repository into
$GOPATH/src/github.com/step2019/idohazwordz
(~/go/src/github.com/step2019/idohazwordz by default). You can then just cd
to this directory, and run these programs directly:
cd ${GOPATH:-~/go}/src/github.com/step2019/idohazwordz
go run anysolver/solve.goor just run them directly:
go run ${GOPATH:-~/go}/src/github.com/step2019/idohazwordz/benchmark/bench.goA great way to start is the tutorial at https://tour.golang.org/ (日本語版もある). The "basics" section covers enough to be able to read simplified.go.