Documentation ¶
Index ¶
- Constants
- Variables
- type Generator
- func (g *Generator) At(idx int) Item
- func (g *Generator) EOF() bool
- func (g *Generator) GroupString(group PickedGroup) string
- func (g *Generator) Length() int
- func (g *Generator) Missings() []Item
- func (g *Generator) PickAvailableGroup(maxLevel int) []int
- func (g *Generator) PickItemAtExtremity(targetCounter int) []int
- func (g *Generator) PickSamePersonGroup(maxLevel int) []int
- func (g *Generator) Shazam() error
- func (g *Generator) Show()
- type Item
- type ItemList
- type Options
- type PickedGroup
Constants ¶
View Source
const ( KindNationality = iota KindHouseColor KindPet KindJob KindBeverage KindWeapon KindTransport KindRoom )
Variables ¶
View Source
var BaseGenerator map[int]ItemList
View Source
var KindName map[int]string
View Source
var Kinds = []int{ KindNationality, KindHouseColor, KindPet, KindJob, KindBeverage, KindWeapon, KindTransport, KindRoom, }
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct { Options Options Vector []int Pickeds []PickedGroup Items map[int]ItemList Kinds []int }
func NewGenerator ¶
func (*Generator) GroupString ¶
func (g *Generator) GroupString(group PickedGroup) string
func (*Generator) PickAvailableGroup ¶
func (*Generator) PickItemAtExtremity ¶
func (*Generator) PickSamePersonGroup ¶
type Options ¶
type Options struct { Size int Categories int GroupSize int Secrets int Seed int64 SamePersonGroups int }
func (*Options) ApplyDefaults ¶
func (o *Options) ApplyDefaults()
type PickedGroup ¶
type PickedGroup []int
Click to show internal directories.
Click to hide internal directories.