Find Chess960 starting position identifier: Difference between revisions

→‎{{header|Raku}}: Add troublesome examples.
(→‎{{header|Python}}: Fix algorithm; add demo code with troublesome examples.)
(→‎{{header|Raku}}: Add troublesome examples.)
Line 799:
 
{{Out}}
<pre>$ for demo in QNRBBNKR RNBQKBNR RQNBBKRN RNQBBKRN; do c960spid "$demo"; done
<pre>$ c960spid QNRBBNKR
♕♘♖♗♗♘♔♖: 105
♖♘♗♕♔♗♘♖: 518</pre>
$ c960spid
♖♕♘♗♗♔♖♘: 601
♖♘♗♕♔♗♘♖: 518</pre>
♖♘♕♗♗♔♖♘: 617</pre>
 
=={{header|Ruby}}==
1,479

edits