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 /chessboard.mu | |
parent | 33262afe8765131af6a4fffa8f8ddf6ac7ea3d58 (diff) | |
download | mu-0529c77fb0c2b0dacb4d3dc51b0c0fc17511541e.tar.gz |
1408
Diffstat (limited to 'chessboard.mu')
-rw-r--r-- | chessboard.mu | 8 |
1 files changed, 4 insertions, 4 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 |