⚪️⚫️⚪️⚫️
GO111MODULE=off go get -u github.com/gogogomoku/gomoku
export GO111MODULE=on
go get -v -d -u ./...
go run cmd/gomoku/main.go -s
You will need node
(with npm
and npx
, included in recent node distributions).
cd ./ui
npm install
npm run serve
First, build it: go build ./cmd/gomoku
Run the binary and print out filename (slow):
pprof_file="$(./gomoku 2> >(grep -o '[^[:space:]]*pprof') | tail -1)" && echo "CPU profile created: $pprof_file"
graph_pdf="./profgraph$(date '+%F_%T').pdf" && go tool pprof --pdf $pprof_file > $graph_pdf && open $graph_pdf
OR
Run from source:
go run cmd/gomoku/main.go [-flags]
go tool pprof --pdf _FILE_ > file.pdf
open file.pdf
Make a production-ready build. You will need docker
and docker-compose
.
[sudo] ./runit.sh