Loading game/game.go +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ func NewGame() *Game { // AddPlayer ... func (g *Game) AddPlayer(name string, cell grid.Cell) error { c := len(g.Players) g.Players[c] = bot.New(name, cell) g.Players[c] = bot.NewBot(name, cell) return nil } Loading players/bot/bot.go +2 −2 Original line number Diff line number Diff line Loading @@ -12,8 +12,8 @@ type Bot struct { cell grid.Cell } // New ... func New(name string, cell grid.Cell) *Bot { // NewBot ... func NewBot(name string, cell grid.Cell) *Bot { return &Bot{ name: name, cell: cell, Loading Loading
game/game.go +1 −1 Original line number Diff line number Diff line Loading @@ -26,7 +26,7 @@ func NewGame() *Game { // AddPlayer ... func (g *Game) AddPlayer(name string, cell grid.Cell) error { c := len(g.Players) g.Players[c] = bot.New(name, cell) g.Players[c] = bot.NewBot(name, cell) return nil } Loading
players/bot/bot.go +2 −2 Original line number Diff line number Diff line Loading @@ -12,8 +12,8 @@ type Bot struct { cell grid.Cell } // New ... func New(name string, cell grid.Cell) *Bot { // NewBot ... func NewBot(name string, cell grid.Cell) *Bot { return &Bot{ name: name, cell: cell, Loading