Documentation ¶
Index ¶
- Constants
- func NewServer() *echo.Echo
- type Board
- type Game
- func (game *Game) Json() interface{}
- func (game *Game) Move(session uint64, from Location, to Location) error
- func (game *Game) Promote(session uint64, to PieceType) error
- func (game *Game) Register(player Player, session uint64, name string) error
- func (game *Game) Reset() error
- func (game *Game) Unregister(session uint64) error
- type Location
- func LocationFromInt8(i int8) Location
- func MovableLocationsFromBishop(board Board, from Location) []Location
- func MovableLocationsFromKing(board Board, from Location) []Location
- func MovableLocationsFromKnight(board Board, from Location) []Location
- func MovableLocationsFromPawn(board Board, from Location) []Location
- func MovableLocationsFromQueen(board Board, from Location) []Location
- func MovableLocationsFromRook(board Board, from Location) []Location
- type Phase
- type Piece
- type PieceType
- type Player
- type State
Constants ¶
View Source
const MAX_RANK = 8
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Location ¶
func LocationFromInt8 ¶
func (Location) RelativeTo ¶
type Piece ¶
Click to show internal directories.
Click to hide internal directories.