Commit c095b5dc authored by Boris Mühmer's avatar Boris Mühmer
Browse files

changed function name

parent a211fc18
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
}

+2 −2
Original line number Diff line number Diff line
@@ -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,