Skip to content

Commit

Permalink
SymSolver returning current number of found unique solutions
Browse files Browse the repository at this point in the history
  • Loading branch information
olepoeschl committed Mar 2, 2024
1 parent 3d4ebfc commit 379adee
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/java/de/nqueensfaf/impl/SymSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,20 +96,14 @@ private void rot180Solver(int ld, int rd, int col, int ldbot, int rdbot, int row
}

public long getSolutions90() {
if (isRunning())
return 0;
return solutions90;
}

public long getSolutions180() {
if (isRunning())
return 0;
return solutions180;
}

public long getUniqueSolutionsTotal(long solutions) {
if (isRunning())
return 0;
return (solutions + 4 * solutions180 + 6 * solutions90) / 8;
}

Expand Down

0 comments on commit 379adee

Please sign in to comment.