diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-08-28 23:21:48 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-08-28 23:25:21 -0700 |
commit | 6c1376f8307a3c7b98dfd5ef09670bd15c05f399 (patch) | |
tree | 7baa415602234e3619a710f4c23907666ef4b716 /chessboard.mu | |
parent | c769b878f65247fff2f4dabaf7948709ff1dcadb (diff) | |
download | mu-6c1376f8307a3c7b98dfd5ef09670bd15c05f399.tar.gz |
2095
Finally terminate the experiment of keeping debug prints around. I'm also going to give up on maintaining counts. What we really need is two kinds of tracing: a) For tests, just the domain-specific facts, organized by labels. b) For debugging, just transient dumps to stdout. b) only works if stdout is clean by default. Hmm, I think this means 'stash' should be the transient kind of trace.
Diffstat (limited to 'chessboard.mu')
-rw-r--r-- | chessboard.mu | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/chessboard.mu b/chessboard.mu index ce41a738..a0bdb435 100644 --- a/chessboard.mu +++ b/chessboard.mu @@ -155,11 +155,9 @@ recipe print-board [ board:address:array:address:array:character <- next-ingredient row:number <- copy 7 # start printing from the top of the board # print each row -#? $print [printing board to screen ], screen, 10/newline { done?:boolean <- lesser-than row, 0 break-if done? -#? $print [printing rank ], row, 10/newline # print rank number as a legend rank:number <- add row, 1 print-integer screen, rank @@ -182,17 +180,12 @@ recipe print-board [ loop } # print file letters as legend -#? $print [printing legend -#? ] #? 1 s <- new [ +----------------] print-string screen, s screen <- cursor-to-next-line screen -#? screen <- print-character screen, 97 #? 1 s <- new [ a b c d e f g h] screen <- print-string screen, s screen <- cursor-to-next-line screen -#? $print [done printing board -#? ] #? 1 ] # board:address:array:address:array:character <- initial-position @@ -225,7 +218,6 @@ scenario printing-the-board [ run [ 1:address:array:address:array:character/board <- initial-position screen:address <- print-board screen:address, 1:address:array:address:array:character/board -#? $dump-screen #? 1 ] screen-should-contain [ # 012345678901234567890123456789 |