14 lines
385 B
Go
14 lines
385 B
Go
package game
|
|
|
|
import (
|
|
"github.com/iliadenisov/galaxy/internal/controller"
|
|
"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) { controller.MakeTurn(c, r) })
|
|
})
|
|
return
|
|
}
|