1 Fix in line 113 but still not done????
This commit is contained in:
parent
4286d01786
commit
9aaeaeed5b
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user