Package math.wfc.rules
Class FixedAmountPerColumn
java.lang.Object
math.wfc.rules.Rule
math.wfc.rules.FixedAmountPerColumn
A rule that forces a certain amount of a tile to be in each column of the grid.
-
Nested Class Summary
Nested classes/interfaces inherited from class math.wfc.rules.Rule
Rule.STATE
-
Constructor Summary
ConstructorsConstructorDescriptionFixedAmountPerColumn
(int a) Constructer for a Rule that forces a certain count of tile to be in a certain row. -
Method Summary
-
Constructor Details
-
FixedAmountPerColumn
public FixedAmountPerColumn(int a) Constructer for a Rule that forces a certain count of tile to be in a certain row.- Parameters:
a
- The amount of tiles in each row
-
-
Method Details
-
getState
Description copied from class:Rule
A function to test if the Rule is fullfilled -
rotate
Description copied from class:Rule
A function that rotates the rule clockwise. -
mirrorX
Description copied from class:Rule
A function that mirrors the rule along the x-Axis -
mirrorY
Description copied from class:Rule
A function that mirrors the rule along the y-Axis
-