Find Chess960 starting position identifier: Difference between revisions
Find Chess960 starting position identifier (view source)
Revision as of 16:17, 24 July 2022
, 1 year ago→{{header|QBasic}}: Take advantage of mixed case, and add explicit output, since the code no longer matches the Commodore solution.
SqrtNegInf (talk | contribs) (→{{header|Raku}}: streamline, style) |
(→{{header|QBasic}}: Take advantage of mixed case, and add explicit output, since the code no longer matches the Commodore solution.) |
||
Line 178:
{{works with|QBasic|1.1}}
{{trans|Commodore BASIC}}
<lang qbasic>
120
Print
170
P$ =
250
330
350
N = N(I)
Next J
N(I) = N
N0 = 1: N1 = 2
N1 = N1 + 1
490 Q = Q(0) - 1
B = B(I) - 1
End
END</lang>▼
{{out}}
<pre>Enter start array as seen by White.
Starting array? qnrbbnkr
SP-ID = 105
Starting array? RNBQKBNR
SP-ID = 518
Starting array? RQNBBKRN
SP-ID = 601
Starting array? RNQBBKRN
SP-ID = 617
</pre>
|