renamed package/directory
This commit is contained in:
+5
-5
@@ -6,8 +6,8 @@ import (
|
||||
"math/rand"
|
||||
"time"
|
||||
|
||||
"bitbucket.org/hackerbots/botclient"
|
||||
"bitbucket.org/hackerbots/botserv"
|
||||
hbclient "bitbucket.org/hackerbots/client"
|
||||
hbserver "bitbucket.org/hackerbots/server"
|
||||
)
|
||||
|
||||
var hp = flag.Int("hp", 50, "")
|
||||
@@ -39,13 +39,13 @@ func main() {
|
||||
gameId = flag.Arg(0)
|
||||
}
|
||||
|
||||
c := &botclient.Client{
|
||||
c := &hbclient.Client{
|
||||
Server: *server,
|
||||
Port: *port,
|
||||
Name: *botname,
|
||||
GameId: gameId,
|
||||
// XXX: update with missing fields
|
||||
StatsReq: botserv.StatsRequest{
|
||||
StatsReq: hbserver.StatsRequest{
|
||||
Hp: *hp,
|
||||
Speed: *speed,
|
||||
Acceleration: *acceleration,
|
||||
@@ -65,7 +65,7 @@ func main() {
|
||||
log.Printf("%s: failed to negociate: %s", c.Name, err)
|
||||
}
|
||||
|
||||
c.Player = botclient.NewSimplePlayer(
|
||||
c.Player = hbclient.NewSimplePlayer(
|
||||
c.Game.BoardSize.Width,
|
||||
c.Game.BoardSize.Height,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user