Documentation ¶
Index ¶
Constants ¶
View Source
const ( MinSize = 12 Steps = 20 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Automata ¶
type Automata struct {
// contains filtered or unexported fields
}
func (*Automata) GetCurrentStep ¶
func (*Automata) GetGridCount ¶
func (*Automata) GetParticlesAtStep ¶
type Particle ¶
type Particle struct {
// contains filtered or unexported fields
}
func NewParticle ¶
func NewParticle(value complex128, position [2]int) *Particle
func (*Particle) GetDirection ¶
func (*Particle) GetPosition ¶
func (*Particle) SetDirectionModifier ¶
type Wall ¶
type Wall struct {
// contains filtered or unexported fields
}
func NewWall ¶
func NewWall(position WallPosition, reaction WallEffect) *Wall
type WallEffect ¶
type WallEffect byte
const ( WallEffectNone WallEffect = iota WallEffectReverseDirection WallEffectTeleportOpposite )
type WallPosition ¶
type WallPosition byte
const ( WallPositionTop WallPosition = iota WallPositionBottom WallPositionLeft WallPositionRight )
func (WallPosition) GetOpposite ¶
func (wp WallPosition) GetOpposite() WallPosition
Click to show internal directories.
Click to hide internal directories.