Documentation
¶
Index ¶
- type Game
- func (g *Game) GetHand() compact.Instances
- func (g *Game) HumanTurn() (result bool)
- func (g *Game) MakeDraw()
- func (g *Game) MakeTurn() (x bool)
- func (g *Game) Player(x bool) *Player
- func (g *Game) ProcessOne(cb *server.Callbacks) bool
- func (g *Game) RobotTurn() (result bool)
- func (g *Game) Run()
- func (g *Game) RunOne(rnd int, startTile tile.Tile) bool
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Game ¶
type Game struct { Context context.Context Dealer bool Human *Player Robot *Player Wall tile.Instances Client client.Controller Connection network.XMLConnection Turn bool Rinshan bool // contains filtered or unexported fields }
func NewGame ¶
func NewGame(c network.XMLConnection) *Game
Click to show internal directories.
Click to hide internal directories.