gobang

package
v0.0.0-...-d3fa247 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2017 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMPTY = 0
	BLACK = 1
	WHITE = 2
	SIZE  = 15
)

Variables

This section is empty.

Functions

func CheckData

func CheckData(data int) bool

func Game

func Game(c echo.Context) error

func GetColor

func GetColor(data int) string

func HandleGameSocket

func HandleGameSocket(c echo.Context) error

func HandleStatusSocket

func HandleStatusSocket(c echo.Context) error

Types

type Board

type Board struct {
	// contains filtered or unexported fields
}

func NewBoard

func NewBoard() *Board

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(name string, room *Room, ws *websocket.Conn) *Client

type Room

type Room struct {
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom() *Room

type RoomList

type RoomList struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL