1 Fix in line 113 but still not done????

This commit is contained in:
Matti 2024-05-20 22:05:40 +02:00
parent 4286d01786
commit 9aaeaeed5b

View File

@ -102,7 +102,7 @@ public class Queenproblem {
for (int i = 0; i < 8; i++) {
try {
if (this.field[col-1+i] != 0) {
if (this.field[col - 1 + i] == row - i) {
if (this.field[col-1+i] == row-i) {
return false;
}
}
@ -110,8 +110,8 @@ public class Queenproblem {
;
}
try {
if (this.field[col-1-1] != 0) {
if (this.field[col - 1 - i] == row + 1) {
if (this.field[col-1-i] != 0) {
if (this.field[col-1-i] == row + 1) {
return false;
}
}