Changes

Jump to: navigation, search

Locomotive BASIC

4 bytes added, 14:18, 26 February 2007
/* CHR$ (n) */
: Returns the character for a given index n. For instance CHR$(65) returns the character 'A'. Valid indices range from 0 (zero) to 255.
: As an example, try the following basic program :
<pre>10 print chr$(208+rnd(2));:goto 10</pre>
: It will draw a random maze with characters 208 and 209, which are an horizontal and a vertical bar.
==== CINT ====
197
edits