Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSimilarPatterns ¶
func FindSimilarPatterns(chamber *Chamber) (*DeepPattern, *DeepPattern)
Types ¶
type Chamber ¶
func NewChamber ¶
func NewChamber(width int, jetGen *JetGenerator, rockGen *RockGenerator, print bool) *Chamber
func (*Chamber) CurrentRockResting ¶
func (*Chamber) NextJetIndex ¶
func (*Chamber) NextRockIndex ¶
func (*Chamber) SettleCurrentRock ¶
func (c *Chamber) SettleCurrentRock()
type Coordinate ¶
type DeepPattern ¶
func (*DeepPattern) SamePattern ¶
func (p *DeepPattern) SamePattern(other *DeepPattern) bool
type JetGenerator ¶
type JetGenerator struct {
// contains filtered or unexported fields
}
func NetJetGenerator ¶
func NetJetGenerator(pattern []byte) *JetGenerator
func (*JetGenerator) Generate ¶
func (g *JetGenerator) Generate() byte
func (*JetGenerator) Next ¶
func (g *JetGenerator) Next() int
type RockGenerator ¶
type RockGenerator struct {
// contains filtered or unexported fields
}
func NewRockGenerator ¶
func NewRockGenerator() *RockGenerator
func (*RockGenerator) Generate ¶
func (g *RockGenerator) Generate() *Rock
func (*RockGenerator) Next ¶
func (g *RockGenerator) Next() int
Click to show internal directories.
Click to hide internal directories.