15 lines
434 B
Go
15 lines
434 B
Go
package game
|
|
|
|
import (
|
|
"github.com/iliadenisov/galaxy/internal/controller"
|
|
"github.com/iliadenisov/galaxy/internal/game/turn"
|
|
"github.com/iliadenisov/galaxy/internal/model/game"
|
|
)
|
|
|
|
func MakeTurn(configure func(*controller.Param), race string, number int, name string) (err error) {
|
|
control(configure, func(c *controller.Controller) {
|
|
c.ExecuteGame(func(r controller.Repo, g *game.Game) { turn.MakeTurn(c, r, g) })
|
|
})
|
|
return
|
|
}
|