LanX has asked for the wisdom of the Perl Monks concerning the following question:
On a 3x4 chess board 3 black and white knights are positioned at opposite ends.
XXX ... ... OOO
What's the minimal number of moves to swap their positions?
Write a Perl program calculating (and proving) an optimal solution and printing all intermediary steps.
Like ...
OOO .X. ... XX.
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!
Please use <spoiler> tags when posting solutions :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: [code challenge] knights move
by BrowserUk (Patriarch) on Jun 21, 2015 at 23:17 UTC | |
by LanX (Saint) on Jun 21, 2015 at 23:23 UTC | |
|
Re: [code challenge] knights move
by Anonymous Monk on Jun 21, 2015 at 21:48 UTC | |
by LanX (Saint) on Jun 21, 2015 at 22:30 UTC | |
by Anonymous Monk on Jun 21, 2015 at 22:47 UTC | |
by LanX (Saint) on Jun 21, 2015 at 23:04 UTC | |
by Anonymous Monk on Jun 21, 2015 at 23:15 UTC | |
|
Re: [code challenge] knights move
by Anonymous Monk on Jun 25, 2015 at 16:44 UTC |