controllers

package
Version: v0.0.0-...-e940768 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TotalGame map[string]OneGame

Functions

func AddAStone

func AddAStone(x int, y int, color int)

func AddAStone_Desk

func AddAStone_Desk(num string, x int, y int, color int)

func ChangeWhite_Done

func ChangeWhite_Done(num string, value string)

func CheckAccount

func CheckAccount(t *context.Context) bool

func DelAStone

func DelAStone()

func DelAStone_Desk

func DelAStone_Desk(num string)

func GetAGobangLen

func GetAGobangLen(num string) (length int)

func GetAllChess

func GetAllChess(num string) string

func GetChessArr

func GetChessArr() (chessarr [15][15]int)

func GetChessArr_Desk

func GetChessArr_Desk(num string) (chessarr [15][15]int)

var TotalGame map[string]OneGame

func GetCount

func GetCount(num string) (count int)

func GetLastChess

func GetLastChess(num string) (last []int)

func GetWinner

func GetWinner(num string) (winner string)

func NewGobang

func NewGobang()

func NewGobang_Desk

func NewGobang_Desk(num string)

func SaveGobang

func SaveGobang(num string)

func SetCount

func SetCount(num string, count int)

func SetWinner

func SetWinner(num string, winner string)

Types

type AStone

type AStone struct {
	X     int `json:"X"`
	Y     int `json:"Y"`
	Color int `json:"Color"` //1=white,-1=white,0=no
}

type ChooseDeskController

type ChooseDeskController struct {
	beego.Controller
}

func (*ChooseDeskController) Get

func (t *ChooseDeskController) Get()

type ChooseRoomController

type ChooseRoomController struct {
	beego.Controller
}

func (*ChooseRoomController) Get

func (t *ChooseRoomController) Get()

type FirstController

type FirstController struct {
	beego.Controller
}

func (*FirstController) Get

func (c *FirstController) Get()

type LoginController

type LoginController struct {
	beego.Controller
}

func (*LoginController) Get

func (t *LoginController) Get()

func (*LoginController) Post

func (t *LoginController) Post()

type MainController

type MainController struct {
	beego.Controller
}

func (*MainController) Get

func (c *MainController) Get()

type MatchingRoomController

type MatchingRoomController struct {
	beego.Controller
}

func (*MatchingRoomController) Get

func (t *MatchingRoomController) Get()

type OneGame

type OneGame struct {
	//Blacker    string         //black name
	//White      string         //white name
	Desk       int            //第几桌
	Count      int            //当前桌第几盘
	White_Done string         //白色棋子是否下完
	Winner     string         //black  or white
	AGobang    map[int]AStone //统一成Desk_0.Winner
	GobangSave map[int]interface{}
}
var Desk_0 OneGame
var Desk_1 OneGame
var Desk_10 OneGame
var Desk_2 OneGame
var Desk_3 OneGame
var Desk_4 OneGame
var Desk_5 OneGame
var Desk_6 OneGame
var Desk_7 OneGame
var Desk_8 OneGame
var Desk_9 OneGame

type RegistController

type RegistController struct {
	beego.Controller
}

func (*RegistController) Get

func (t *RegistController) Get()

func (*RegistController) Post

func (t *RegistController) Post()

type ResultController

type ResultController struct {
	beego.Controller
}

func (*ResultController) Get

func (t *ResultController) Get()

type SecondController

type SecondController struct {
	beego.Controller
}

func (*SecondController) Get

func (c *SecondController) Get()

type THWLController

type THWLController struct {
	beego.Controller
}

func (*THWLController) Get

func (t *THWLController) Get()

type WuziqiController

type WuziqiController struct {
	beego.Controller
}

func (*WuziqiController) Get

func (t *WuziqiController) Get()

type WuziqiPVP1Controller

type WuziqiPVP1Controller struct {
	beego.Controller
}

func (*WuziqiPVP1Controller) Get

func (t *WuziqiPVP1Controller) Get()

type WuziqiPVPB1Controller

type WuziqiPVPB1Controller struct {
	beego.Controller
}

func (*WuziqiPVPB1Controller) Get

func (t *WuziqiPVPB1Controller) Get()

type WuziqiPVPBController

type WuziqiPVPBController struct {
	beego.Controller
}

func (*WuziqiPVPBController) Get

func (t *WuziqiPVPBController) Get()

type WuziqiPVPController

type WuziqiPVPController struct {
	beego.Controller
}

func (*WuziqiPVPController) Get

func (t *WuziqiPVPController) Get()

type WuziqiPVPG1Controller

type WuziqiPVPG1Controller struct {
	beego.Controller
}

func (*WuziqiPVPG1Controller) Get

func (t *WuziqiPVPG1Controller) Get()

type WuziqiPVPGController

type WuziqiPVPGController struct {
	beego.Controller
}

func (*WuziqiPVPGController) Get

func (t *WuziqiPVPGController) Get()

type WuziqiPVPS1Controller

type WuziqiPVPS1Controller struct {
	beego.Controller
}

func (*WuziqiPVPS1Controller) Get

func (t *WuziqiPVPS1Controller) Get()

type WuziqiPVPSController

type WuziqiPVPSController struct {
	beego.Controller
}

func (*WuziqiPVPSController) Get

func (t *WuziqiPVPSController) Get()

type WuziqiPVPW1Controller

type WuziqiPVPW1Controller struct {
	beego.Controller
}

func (*WuziqiPVPW1Controller) Get

func (t *WuziqiPVPW1Controller) Get()

type WuziqiPVPWController

type WuziqiPVPWController struct {
	beego.Controller
}

func (*WuziqiPVPWController) Get

func (t *WuziqiPVPWController) Get()

Jump to

Keyboard shortcuts

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