A dumb generals.io bot in Go
It doesn't even do random moves yet. It totally runs a random strategy.
But does have most of the logistics wired in.
# just prep it
git clone https://github.com/bryanhelmig/generalsbot
cd generalsbot
go get
# just test it
go test
# just run it
go run main.go core.go constants.go strategy.go types.go
# now join the printed URL on the screen
Forgive the Go newbishness.
Features
While it runs, it prints the grid to stdout:
Upcoming
Pluggable strategies with preferences game stage. For example:
- No enemies seen yet?
Explore
strategy will want to make the moves. - Seen an enemy but haven't seen seen their general?
Hunt
strategy should be preferred. - Seen a general?
BuildThenRush
strategy will be preferred. - Enemy seen us and still alive?
Defend
strategy will be preferred. - etc...