Documentation ¶
Index ¶
Constants ¶
View Source
const (
MATCFUNC_NAME = "player_capacity_matchfunc"
)
Variables ¶
View Source
var ( ErrMatchProfileIsNil = errors.New("MatchProfile can't be nil") ErrPoolTicketsIsNil = errors.New("PoolTickets can't be nil") )
View Source
var (
ErrPlayersCapacityInvalid = errors.New("player capacity must be higher than zero")
)
Functions ¶
func CreateMatchForTickets ¶
Types ¶
type MakeMatchesFunc ¶
type MakeMatchesFunc func(profile *pb.MatchProfile, poolTickets map[string][]*pb.Ticket) ([]*pb.Match, error)
func MatchByGamePlayersCapacity ¶
func MatchByGamePlayersCapacity(playerCapacity int) MakeMatchesFunc
Criteria for Matches - Number or tickets should not exceed the PlayerCapacity set by the Status.Players.Capacity field from the GS
Click to show internal directories.
Click to hide internal directories.