diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2015-05-19 18:23:20 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2015-05-19 18:23:20 -0700 |
commit | 0529c77fb0c2b0dacb4d3dc51b0c0fc17511541e (patch) | |
tree | c7667e79e693a4e5f48786dc616b5a2751072cfc | |
parent | 33262afe8765131af6a4fffa8f8ddf6ac7ea3d58 (diff) | |
download | mu-0529c77fb0c2b0dacb4d3dc51b0c0fc17511541e.tar.gz |
1408
-rw-r--r-- | chessboard.mu | 8 | ||||
-rw-r--r-- | html/chessboard.mu.html | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/chessboard.mu b/chessboard.mu index 5faaead5..aac3e1cc 100644 --- a/chessboard.mu +++ b/chessboard.mu @@ -22,11 +22,10 @@ recipe main [ return-to-console # cleanup screen and keyboard ] -# But enough about mu. Here's what it looks like to run the chessboard -# program. +## But enough about mu. Here's what it looks like to run the chessboard program. scenario print-board-and-read-move [ - $close-trace # this test generates a 300+ MB trace! + $close-trace # administrivia: most scenarios save and check traces, but this one gets too large/slow # we'll make the screen really wide because the program currently prints out a long line assume-screen 120:literal/width, 20:literal/height # initialize keyboard to type in a move @@ -36,7 +35,6 @@ scenario print-board-and-read-move [ screen:address, keyboard:address <- chessboard screen:address, keyboard:address # icon for the cursor screen:address <- print-character screen:address, 9251:literal # '␣' -#? $dump-screen #? 1 ] screen-should-contain [ # 1 2 3 4 5 6 7 8 9 10 11 @@ -64,6 +62,8 @@ scenario print-board-and-read-move [ ] ] +## Here's how 'chessboard' is implemented. + recipe chessboard [ #? $start-tracing [schedule] #? 2 #? $start-tracing #? 1 diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html index 8bc66fce..a1023dc0 100644 --- a/html/chessboard.mu.html +++ b/html/chessboard.mu.html @@ -2,7 +2,7 @@ <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> -<title>chessboard.mu</title> +<title>~/Desktop/s/mu/chessboard.mu.html</title> <meta name="Generator" content="Vim/7.4"> <meta name="plugin-version" content="vim7.4_v1"> <meta name="syntax" content="none"> @@ -55,11 +55,10 @@ recipe main [ return-to-console <span class="Comment"># cleanup screen and keyboard</span> ] -<span class="Comment"># But enough about mu. Here's what it looks like to run the chessboard</span> -<span class="Comment"># program.</span> +<span class="SalientComment">## But enough about mu. Here's what it looks like to run the chessboard program.</span> scenario print-board-and-read-move [ - <span class="Identifier"> $close-trace</span> <span class="Comment"># this test generates a 300+ MB trace!</span> + <span class="Identifier"> $close-trace</span> <span class="Comment"># administrivia: most scenarios save and check traces, but this one gets too large/slow</span> <span class="Comment"># we'll make the screen really wide because the program currently prints out a long line</span> assume-screen <span class="Constant">120:literal/width</span>, <span class="Constant">20:literal/height</span> <span class="Comment"># initialize keyboard to type in a move</span> @@ -69,7 +68,6 @@ scenario print-board-and-read-move [ screen:address, keyboard:address<span class="Special"> <- </span>chessboard screen:address, keyboard:address <span class="Comment"># icon for the cursor</span> screen:address<span class="Special"> <- </span>print-character screen:address, <span class="Constant">9251:literal</span> <span class="Comment"># '␣'</span> -<span class="CommentedCode">#? $dump-screen #? 1</span> ] screen-should-contain [ <span class="Comment"># 1 2 3 4 5 6 7 8 9 10 11</span> @@ -97,6 +95,8 @@ scenario print-board-and-read-move [ ] ] +<span class="SalientComment">## Here's how 'chessboard' is implemented.</span> + recipe chessboard [ <span class="CommentedCode">#? $start-tracing [schedule] #? 2</span> <span class="CommentedCode">#? $start-tracing #? 1</span> |