Find Chess960 starting position identifier: Difference between revisions
Content added Content deleted
(→{{header|Nim}}: Correct algorithm, add test examples.) |
(→{{header|Perl}}: Add troublesome examples.) |
||
Line 588: | Line 588: | ||
} |
} |
||
say "$_ " . sp_id($_) for <QNRBBNKR RNBQKBNR>; |
say "$_ " . sp_id($_) for <QNRBBNKR RNBQKBNR RQNBBKRN RNQBBKRN>; |
||
{{out}} |
{{out}} |
||
<pre>QNRBBNKR 105 |
<pre>QNRBBNKR 105 |