Module gridit::pattern[][src]

All patterns and Pattern Trait used for pattern.

Structs

DirectionPattern

Steps in only one direction until end or grid or the repeat condition is meet.

JumpsPattern

A pattern which jumps to the given positions. Positions outside the grid are ignored.

SideStepsPattern

A pattern which side steps from the original position. Steps which lead outside the grid are ignored.

StepsPattern

Walks the steps given, until one step leads outside the grid.

Enums

Action

Movement action to perform.

Repeat

How often a pattern is run.

Traits

Pattern

This trait is there to create pattern for the PatternIter. The implemntation should only return one variant of Action.