Find Chess960 starting position identifier: Difference between revisions
Content added Content deleted
(→{{header|Python}}: Fix algorithm; add demo code with troublesome examples.) |
(→{{header|Raku}}: Add troublesome examples.) |
||
Line 799: | Line 799: | ||
{{Out}} |
{{Out}} |
||
<pre>$ for demo in QNRBBNKR RNBQKBNR RQNBBKRN RNQBBKRN; do c960spid "$demo"; done |
|||
<pre>$ c960spid QNRBBNKR |
|||
♕♘♖♗♗♘♔♖: 105 |
♕♘♖♗♗♘♔♖: 105 |
||
⚫ | |||
$ c960spid |
|||
♖♕♘♗♗♔♖♘: 601 |
|||
⚫ | |||
♖♘♕♗♗♔♖♘: 617</pre> |
|||
=={{header|Ruby}}== |
=={{header|Ruby}}== |