Generate Chess960 starting position: Difference between revisions
Content added Content deleted
Line 82: | Line 82: | ||
==={{header|Commodore BASIC}}=== |
==={{header|Commodore BASIC}}=== |
||
{{works with|Commodore BASIC|3.5,7.0}} |
{{works with|Commodore BASIC|3.5,7.0}} |
||
Besides the admittedly-trivial |
Besides the admittedly-trivial use of <tt>DO</tt>/<tt>LOOP</tt>, this implementation also exploits the BASIC 3.5+ ability to use <tt>MID$</tt> as an lvalue. |
||
<lang basic>100 REM CHESS 960 |
<lang basic>100 REM CHESS 960 |
||
110 PRINT "SPID (-1 FOR RANDOM):"; |
110 PRINT "SPID (-1 FOR RANDOM):"; |