Skip to content

Commit

Permalink
Small bugfix in generator
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 7, 2024
1 parent 1f17f01 commit 59f18f5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/nqueensfaf/impl/ConstellationsGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public class ConstellationsGenerator {
private HashSet<Integer> ijklList;

public ConstellationsGenerator(int n, int presetQueens) {
if(presetQueens < 4)
throw new IllegalArgumentException("could not initialize ConstellationsGenerator: presetQueens must be a number >=4");

this.n = n;
this.presetQueens = presetQueens;

Expand Down

0 comments on commit 59f18f5

Please sign in to comment.