Package math.wfc.rules
Class FixedAmountPerBlock
java.lang.Object
math.wfc.rules.Rule
math.wfc.rules.FixedAmountPerBlock
A Rule that forces a certain amount of tiles to be inside each width x height area of the grid.
-
Nested Class Summary
Nested classes/interfaces inherited from class math.wfc.rules.Rule
Rule.STATE
-
Constructor Summary
ConstructorsConstructorDescriptionFixedAmountPerBlock
(int a, int w, int h) Constructer for a Rule that forces a certain count of tile to be in a certain row. -
Method Summary
-
Constructor Details
-
FixedAmountPerBlock
public FixedAmountPerBlock(int a, int w, int h) 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
-