Documentation ¶
Index ¶
- type Pos
- func (pos *Pos) IsBotTurn() bool
- func (pos *Pos) IsHandMove() bool
- func (pos *Pos) MakeMove() (moveix [2]int)
- func (pos *Pos) MakeTfMove(probas []float64, moveixs [][2]int) (moveix [2]int)
- func (pos *Pos) Reset()
- func (pos *Pos) String() string
- func (pos *Pos) UpdMove(moveView *pub.MoveView) (done bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pos ¶
type Pos struct { PlayHand *bat.Hand Flags [bat.NOFlags]*flag.Flag PlayDish *bat.Dish OppDish *bat.Dish Deck *deck.Deck Turn *pub.Turn }
Pos is a game position.
func (*Pos) MakeTfMove ¶
MakeTfMove calculate the next bot move using tensorflow data.
Click to show internal directories.
Click to hide internal directories.