Documentation
¶
Index ¶
- Variables
- func AllPlayersCicle(game *Game)
- func CORSMiddleware() gin.HandlerFunc
- func CheckCardsLen(game *Game) bool
- func CheckFullWinners(game *Game) bool
- func DeactivateGame(token string)
- func FindPlayer(token string) (int, error)
- func GenerateToken(strlen int) string
- func GetAllEndedGames(c *gin.Context)
- func GetAllGames(c *gin.Context)
- func GetGame(c *gin.Context)
- func MakeDecision(value int) bool
- func Start(args []string)
- func StartGame(c *gin.Context)
- func StopTakeGame(c *gin.Context)
- func TakeCardGame(c *gin.Context)
- type Card
- type Game
- type Player
- type StartReq
- type TokenReq
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentGames []Game
View Source
var EndedGames []Game
Functions ¶
func AllPlayersCicle ¶
func AllPlayersCicle(game *Game)
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
CORSMiddleware middleware headers for any RESTful requests {{{
func CheckCardsLen ¶
func CheckFullWinners ¶
func DeactivateGame ¶
func DeactivateGame(token string)
func FindPlayer ¶
func GenerateToken ¶
func GetAllEndedGames ¶
func GetAllGames ¶
func MakeDecision ¶
func StopTakeGame ¶
func TakeCardGame ¶
Types ¶
type Card ¶
func GenerateDeck ¶
func GenerateDeck() []Card
type Player ¶
func GeneratePlayer ¶
Click to show internal directories.
Click to hide internal directories.