Documentation ¶
Index ¶
Constants ¶
View Source
const ( PlayerNameCommand int PlayerIDCommand PlayersListCommand GameConfigCommand PlayerBoardCommand GameStatusCommand GameMoveCommand GameScoreIndexCommand )
Variables ¶
This section is empty.
Functions ¶
func ClearTerminal ¶
func ClearTerminal()
func RenderBoard ¶
func RenderBoard(board [][]uint8)
func RenderServerBoard ¶
Types ¶
type Client ¶
type Client struct { Id uint8 `json:"id"` Name string `json:"name"` Ip net.IP `json:"ip"` Conn *websocket.Conn `json:"-"` Send chan []byte `json:"-"` // contains filtered or unexported fields }
func (*Client) HandleSocketPing ¶
func (*Client) ReadMessages ¶
func (*Client) SetSocketReadConfig ¶
func (c *Client) SetSocketReadConfig()
type GameConfig ¶
type GameScoreIndex ¶
type GameStatus ¶
type PlayerName ¶
type PlayersBoard ¶
type PlayersList ¶
func (PlayersList) RenderLobby ¶
func (p PlayersList) RenderLobby()
type RequestCommand ¶
type RequestCommand struct {
Command int `json:"command"`
}
Click to show internal directories.
Click to hide internal directories.