diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-06-20 10:40:07 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-06-20 10:40:07 -0700 |
commit | 124c67645cb6f1b9f06d7104c5398fa4732e2f25 (patch) | |
tree | 8d4419ff18f494d4ad5e3318820764c5fa4c474a /html/chessboard.mu.html | |
parent | 130596f0e0efe89a4bee136c1d62ecc577c756e2 (diff) | |
download | mu-124c67645cb6f1b9f06d7104c5398fa4732e2f25.tar.gz |
3934
Diffstat (limited to 'html/chessboard.mu.html')
-rw-r--r-- | html/chessboard.mu.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html index e4c4b112..ddc76c22 100644 --- a/html/chessboard.mu.html +++ b/html/chessboard.mu.html @@ -139,7 +139,7 @@ if ('onhashchange' in window) { <span id="L75" class="LineNr"> 75 </span> start-running <a href='084console.mu.html#L73'>send-keys-to-channel</a>, <a href='084console.mu.html#L23'>console</a>, stdin-out, <a href='081print.mu.html#L4'>screen</a> <span id="L76" class="LineNr"> 76 </span> <span class="Comment"># buffer lines in stdin</span> <span id="L77" class="LineNr"> 77 </span> buffered-stdin-in:&:<a href='075channel.mu.html#L43'>source</a>:char, buffered-stdin-out:&:<a href='075channel.mu.html#L47'>sink</a>:char <span class="Special"><-</span> <a href='075channel.mu.html#L51'>new-channel</a> <span class="Constant">10/capacity</span> -<span id="L78" class="LineNr"> 78 </span> start-running <a href='075channel.mu.html#L388'>buffer-lines</a>, stdin-in, buffered-stdin-out +<span id="L78" class="LineNr"> 78 </span> start-running <a href='075channel.mu.html#L408'>buffer-lines</a>, stdin-in, buffered-stdin-out <span id="L79" class="LineNr"> 79 </span> <span class="Delimiter">{</span> <span id="L80" class="LineNr"> 80 </span> <span class="Conceal">¦</span> print <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[Stupid text-mode chessboard. White pieces in uppercase; black pieces in lowercase. No checking for legal moves.</span> <span id="L81" class="LineNr"> 81 </span><span class="Constant">]</span> @@ -156,7 +156,7 @@ if ('onhashchange' in window) { <span id="L92" class="LineNr"> 92 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <a href='081print.mu.html#L4'>screen</a> <span class="Special"><-</span> print <a href='081print.mu.html#L4'>screen</a>, <span class="Constant">[move: ]</span> <span id="L93" class="LineNr"> 93 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> m:&:<a href='chessboard.mu.html#L229'>move</a>, quit:bool, error:bool <span class="Special"><-</span> <a href='chessboard.mu.html#L238'>read-move</a> buffered-stdin-in, <a href='081print.mu.html#L4'>screen</a> <span id="L94" class="LineNr"> 94 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">break-if</span> quit, <span class="Constant">+quit</span> -<span id="L95" class="LineNr"> 95 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> buffered-stdin-in <span class="Special"><-</span> <a href='075channel.mu.html#L161'>clear</a> buffered-stdin-in <span class="Comment"># cleanup after error. todo: test this?</span> +<span id="L95" class="LineNr"> 95 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> buffered-stdin-in <span class="Special"><-</span> <a href='075channel.mu.html#L312'>clear</a> buffered-stdin-in <span class="Comment"># cleanup after error. todo: test this?</span> <span id="L96" class="LineNr"> 96 </span> <span class="Conceal">¦</span> <span class="Conceal">¦</span> <span class="muControl">loop-if</span> error <span id="L97" class="LineNr"> 97 </span> <span class="Conceal">¦</span> <span class="Delimiter">}</span> <span id="L98" class="LineNr"> 98 </span> <span class="Conceal">¦</span> <a href='chessboard.mu.html#L67'>board</a> <span class="Special"><-</span> <a href='chessboard.mu.html#L537'>make-move</a> <a href='chessboard.mu.html#L67'>board</a>, m @@ -442,7 +442,7 @@ if ('onhashchange' in window) { <span id="L378" class="LineNr">378 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L379" class="LineNr">379 </span><span class="Constant">F read-move-blocking: routine failed to pause after coming up (before any keys were pressed)]</span> <span id="L380" class="LineNr">380 </span> <span class="Conceal">¦</span> <span class="Comment"># press 'a'</span> -<span id="L381" class="LineNr">381 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> +<span id="L381" class="LineNr">381 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> <span id="L382" class="LineNr">382 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L383" class="LineNr">383 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' still waiting for input</span> <span id="L384" class="LineNr">384 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -451,7 +451,7 @@ if ('onhashchange' in window) { <span id="L387" class="LineNr">387 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L388" class="LineNr">388 </span><span class="Constant">F read-move-blocking: routine failed to pause after rank 'a']</span> <span id="L389" class="LineNr">389 </span> <span class="Conceal">¦</span> <span class="Comment"># press '2'</span> -<span id="L390" class="LineNr">390 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">50/'2'</span> +<span id="L390" class="LineNr">390 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">50/'2'</span> <span id="L391" class="LineNr">391 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L392" class="LineNr">392 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' still waiting for input</span> <span id="L393" class="LineNr">393 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -460,7 +460,7 @@ if ('onhashchange' in window) { <span id="L396" class="LineNr">396 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L397" class="LineNr">397 </span><span class="Constant">F read-move-blocking: routine failed to pause after file 'a2']</span> <span id="L398" class="LineNr">398 </span> <span class="Conceal">¦</span> <span class="Comment"># press '-'</span> -<span id="L399" class="LineNr">399 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">45/'-'</span> +<span id="L399" class="LineNr">399 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">45/'-'</span> <span id="L400" class="LineNr">400 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L401" class="LineNr">401 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' still waiting for input</span> <span id="L402" class="LineNr">402 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -469,7 +469,7 @@ if ('onhashchange' in window) { <span id="L405" class="LineNr">405 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L406" class="LineNr">406 </span><span class="Constant">F read-move-blocking: routine failed to pause after hyphen 'a2-']</span> <span id="L407" class="LineNr">407 </span> <span class="Conceal">¦</span> <span class="Comment"># press 'a'</span> -<span id="L408" class="LineNr">408 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> +<span id="L408" class="LineNr">408 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> <span id="L409" class="LineNr">409 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L410" class="LineNr">410 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' still waiting for input</span> <span id="L411" class="LineNr">411 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -478,7 +478,7 @@ if ('onhashchange' in window) { <span id="L414" class="LineNr">414 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L415" class="LineNr">415 </span><span class="Constant">F read-move-blocking: routine failed to pause after rank 'a2-a']</span> <span id="L416" class="LineNr">416 </span> <span class="Conceal">¦</span> <span class="Comment"># press '4'</span> -<span id="L417" class="LineNr">417 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">52/'4'</span> +<span id="L417" class="LineNr">417 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">52/'4'</span> <span id="L418" class="LineNr">418 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L419" class="LineNr">419 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' still waiting for input</span> <span id="L420" class="LineNr">420 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -487,7 +487,7 @@ if ('onhashchange' in window) { <span id="L423" class="LineNr">423 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L424" class="LineNr">424 </span><span class="Constant">F read-move-blocking: routine failed to pause after file 'a2-a4']</span> <span id="L425" class="LineNr">425 </span> <span class="Conceal">¦</span> <span class="Comment"># press 'newline'</span> -<span id="L426" class="LineNr">426 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>,<span class="Constant"> 10</span> <span class="Comment"># newline</span> +<span id="L426" class="LineNr">426 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>,<span class="Constant"> 10</span> <span class="Comment"># newline</span> <span id="L427" class="LineNr">427 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L428" class="LineNr">428 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' now completes</span> <span id="L429" class="LineNr">429 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -515,7 +515,7 @@ if ('onhashchange' in window) { <span id="L451" class="LineNr">451 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L452" class="LineNr">452 </span><span class="Constant">F read-move-quit: routine failed to pause after coming up (before any keys were pressed)]</span> <span id="L453" class="LineNr">453 </span> <span class="Conceal">¦</span> <span class="Comment"># press 'q'</span> -<span id="L454" class="LineNr">454 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">113/q</span> +<span id="L454" class="LineNr">454 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">113/q</span> <span id="L455" class="LineNr">455 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L456" class="LineNr">456 </span> <span class="Conceal">¦</span> <span class="Comment"># 'read-move' completes</span> <span id="L457" class="LineNr">457 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine @@ -542,7 +542,7 @@ if ('onhashchange' in window) { <span id="L478" class="LineNr">478 </span> <span class="Conceal">¦</span> waiting?:bool <span class="Special"><-</span> not-equal read-move-state, <span class="Constant">2/discontinued</span> <span id="L479" class="LineNr">479 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L480" class="LineNr">480 </span><span class="Constant">F read-move-illegal-file: routine failed to pause after coming up (before any keys were pressed)]</span> -<span id="L481" class="LineNr">481 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">50/'2'</span> +<span id="L481" class="LineNr">481 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">50/'2'</span> <span id="L482" class="LineNr">482 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L483" class="LineNr">483 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine <span id="L484" class="LineNr">484 </span> ] @@ -564,8 +564,8 @@ if ('onhashchange' in window) { <span id="L500" class="LineNr">500 </span> <span class="Conceal">¦</span> waiting?:bool <span class="Special"><-</span> not-equal read-move-state, <span class="Constant">2/discontinued</span> <span id="L501" class="LineNr">501 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L502" class="LineNr">502 </span><span class="Constant">F read-move-illegal-rank: routine failed to pause after coming up (before any keys were pressed)]</span> -<span id="L503" class="LineNr">503 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> -<span id="L504" class="LineNr">504 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> +<span id="L503" class="LineNr">503 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> +<span id="L504" class="LineNr">504 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> <span id="L505" class="LineNr">505 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L506" class="LineNr">506 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine <span id="L507" class="LineNr">507 </span> ] @@ -587,8 +587,8 @@ if ('onhashchange' in window) { <span id="L523" class="LineNr">523 </span> <span class="Conceal">¦</span> waiting?:bool <span class="Special"><-</span> not-equal read-move-state, <span class="Constant">2/discontinued</span> <span id="L524" class="LineNr">524 </span> <span class="Conceal">¦</span> assert waiting?, <span class="Constant">[ </span> <span id="L525" class="LineNr">525 </span><span class="Constant">F read-move-empty: routine failed to pause after coming up (before any keys were pressed)]</span> -<span id="L526" class="LineNr">526 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">10/newline</span> -<span id="L527" class="LineNr">527 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L66'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> +<span id="L526" class="LineNr">526 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">10/newline</span> +<span id="L527" class="LineNr">527 </span> <span class="Conceal">¦</span> <a href='075channel.mu.html#L47'>sink</a> <span class="Special"><-</span> <a href='075channel.mu.html#L67'>write</a> <a href='075channel.mu.html#L47'>sink</a>, <span class="Constant">97/a</span> <span id="L528" class="LineNr">528 </span> <span class="Conceal">¦</span> restart read-move-routine <span id="L529" class="LineNr">529 </span> <span class="Conceal">¦</span> wait-for-routine-to-block read-move-routine <span id="L530" class="LineNr">530 </span> ] |