The rules of the game, as they were taught to me, disallowed immediately adjacent ships.
Another problem with placement is that you transpose unconditionally in the loop. E.g. the puzzle will always have size-three ships at right angles.
In reply to Re^2: Battleship solitaire puzzle generator
by Anonymous Monk
in thread Battleship solitaire puzzle generator
by toolic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |