bryanhelmig / generalsbot

A little generals.io bot in go.

Home Page:http://dev.generals.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  1. No enemies seen yet? Explore strategy will want to make the moves.
  2. Seen an enemy but haven't seen seen their general? Hunt strategy should be preferred.
  3. Seen a general? BuildThenRush strategy will be preferred.
  4. Enemy seen us and still alive? Defend strategy will be preferred.
  5. etc...

About

A little generals.io bot in go.

http://dev.generals.io/


Languages

Language:Go 100.0%