Talk:N-queens minimum and knights and bishops: Difference between revisions

m
→‎Simple solution for bishops: added conversion of Julia solution example
m (→‎Performance note: optimizing the order of placing the next token)
m (→‎Simple solution for bishops: added conversion of Julia solution example)
Line 59:
. . . B . .
. . . b . . </pre>
Even the example solution of the [[N-queens_minimum_and_knights_and_bishops#Julia]] can easy be transformed
<pre>
. . . . . . . . . .
. . . . . 0 . . . .
. . . . . 1 . . . .
. 2 . . . . . . . .
. 3 . . . . 4 . . .
. . . . . . 5 . . .
. . 6 . . . 7 . . .
. . . . . . 8 . . .
. 9 . . . . . . . .
. . . . . . . . . .
move along the diagonals, to get a straight row/column next to the middle
. . . . 2 . . . . .
. . . . 3 . . . . .
. . . . 0 . . . . .
. . . . 1 . . . . .
. . . . 6 . . . . .
. . . . 9 . . . . .
. . . . 4 . . . . .
. . . . 5 . . . . .
. . . . 7 . . . . .
. . . . 8 . . . . .</pre>
--[[User:Horsth|Horsth]] ([[User talk:Horsth|talk]]) 16:47, 25 April 2022 (UTC)
 
Anonymous user