⚪️⚫️⚪️⚫️
GO111MODULE=off go get -u github.com/gogogomoku/gomokuexport GO111MODULE=on
go get -v -d -u ./...go run cmd/gomoku/main.go -sYou will need node (with npm and npx, included in recent node distributions).
cd ./ui
npm install
npm run serveFirst, 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_pdfOR
Run from source:
go run cmd/gomoku/main.go [-flags]
go tool pprof --pdf _FILE_ > file.pdf
open file.pdfMake a production-ready build. You will need docker and docker-compose.
[sudo] ./runit.sh