Find Chess960 starting position identifier: Difference between revisions
Find Chess960 starting position identifier (view source)
Revision as of 19:58, 23 July 2022
, 1 year ago→{{header|FreeBASIC}}: Fix variable for knight determination; N is (re)used as the knight configuration number, 0-9, based on when loop exits.
(→{{header|FreeBASIC}}: Add problematic examples.) |
(→{{header|FreeBASIC}}: Fix variable for knight determination; N is (re)used as the knight configuration number, 0-9, based on when loop exits.) |
||
Line 138:
Dim As Integer N0 = 1, N1 = 2
For
If N0 = pN(0) And N1 = pN(1) Then Exit For
N1 += 1
If N1 > 5 Then N0 += 1: N1 = N0 + 1
Next
Q = pQ(0) - 1
|