Skip to content

Commit

Permalink
Renamed jasmin() to jAsMin()
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Jan 5, 2024
1 parent aabc692 commit 072d2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/de/nqueensfaf/impl/CPUSolver.java
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private void genConstellations() {
// rotate and mirror all start constellations, such that the queen in the last
// row is as close to the right border as possible
for (int startConstellation : ijklList) {
ijklListJasmin.add(jasmin(n, startConstellation));
ijklListJasmin.add(jAsMin(n, startConstellation));
}
ijklList = ijklListJasmin;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/nqueensfaf/impl/SolverUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static boolean checkRotations(int n, HashSet<Integer> ijklList, int i, int j, in

// rotate and mirror board, so that the queen closest to a corner is on the
// right side of the last row
static int jasmin(int n, int ijkl) {
static int jAsMin(int n, int ijkl) {
int min = Math.min(getj(ijkl), n - 1 - getj(ijkl)), arg = 0;

if (Math.min(geti(ijkl), n - 1 - geti(ijkl)) < min) {
Expand Down

0 comments on commit 072d2fb

Please sign in to comment.