about summary refs log tree commit diff stats
path: root/chessboard.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-22 17:11:03 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-22 17:14:28 -0700
commit4243d710ed2a4a3d7881dae01879598a4fbcb5c7 (patch)
treee1eb7e403564e70cdc85058c595c88dc5172aeaa /chessboard.mu
parent7feea75b13522c28d168a5200cfb7a89c06ad161 (diff)
downloadmu-4243d710ed2a4a3d7881dae01879598a4fbcb5c7.tar.gz
1418 - starting trace-browser implementation in C++
I still have no idea how it will hook up to the rest. Parsing traces
will be slow. I can't test it like this. Writing the large trace data
structure to mu memory will be slow. But let's at least see the new
algorithm in action. (Not in this commit; so far we just render the
first n lines from the chessboard trace, and wait for a 'q' or 'Q' to
quit.)
Diffstat (limited to 'chessboard.mu')
-rw-r--r--chessboard.mu4
1 files changed, 3 insertions, 1 deletions
diff --git a/chessboard.mu b/chessboard.mu
index aac3e1cc..679d4805 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -25,7 +25,7 @@ recipe main [
 ## But enough about mu. Here's what it looks like to run the chessboard program.
 
 scenario print-board-and-read-move [
-  $close-trace  # administrivia: most scenarios save and check traces, but this one gets too large/slow
+#?   $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
@@ -33,6 +33,8 @@ scenario print-board-and-read-move [
 ]
   run [
     screen:address, keyboard:address <- chessboard screen:address, keyboard:address
+    $browse-trace
+    $close-trace
     # icon for the cursor
     screen:address <- print-character screen:address, 9251:literal  # '␣'
   ]