Generate Chess960 starting position: Difference between revisions
Generate Chess960 starting position (view source)
Revision as of 12:16, 17 March 2024
, 2 months ago→{{header|EasyLang}}
(Added Easylang) |
|||
Line 952:
randins "R" (king + 1) 8 h
randins "B" 1 8 b1
repeat
while (b2 - b1) mod 2 = 0▼
t$[b2] = ""▼
randins "B" 1 8 b2
▲ t$[b2] = ""
.
randins "Q" 1 8 b1
|