- Code: Select all
*-----------*
|..X|...|X..|
|...|X.X|...|
|...|.1.|...|
|---+---+---|
|...|X.X|...|
|..X|...|X..|
|.X.|...|.X.|
|---+---+---|
|X..|...|..X|
|...|...|...|
|...|...|...|
*-----------*
Placement of all 1's is thus a solution to the problem of placing 9 queens on a 9X9 chessboard that do not attack each other.
- Code: Select all
*-----------*
|...|..9|7..|
|.3.|...|...|
|.1.|.73|4..|
|---+---+---|
|7.5|...|..9|
|39.|...|...|
|46.|...|.3.|
|---+---+---|
|...|..7|..1|
|...|564|.2.|
|...|...|.8.|
*-----------*
*-----------*
|...|..1|27.|
|...|3..|..4|
|...|.28|5..|
|---+---+---|
|.5.|...|..6|
|3.7|59.|.4.|
|...|4..|.9.|
|---+---+---|
|...|13.|...|
|2..|..4|...|
|5..|...|9..|
*-----------*
*-----------*
|2..|..6|735|
|3..|...|.9.|
|...|8..|...|
|---+---+---|
|...|.5.|...|
|7..|.2.|3..|
|...|...|6.7|
|---+---+---|
|..7|5..|8..|
|..2|7..|..4|
|..5|...|..2|
*-----------*
Did I re-invent this?
[edit]replaced the 3d puzzle by another