diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-04-27 17:59:46 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-04-27 17:59:46 -0700 |
commit | e32a6a02ee6a14cd85c715979503a58b0d661085 (patch) | |
tree | 5fdc2bca211cd05bb66f7816eec1e42aed4e441c | |
parent | 612c48da330ed2814ee19f7e3f623e8946b200c8 (diff) | |
download | mu-e32a6a02ee6a14cd85c715979503a58b0d661085.tar.gz |
2878
-rw-r--r-- | chessboard.mu | 7 | ||||
-rw-r--r-- | html/chessboard.mu.html | 7 |
2 files changed, 2 insertions, 12 deletions
diff --git a/chessboard.mu b/chessboard.mu index 9bd5adef..7ead26cb 100644 --- a/chessboard.mu +++ b/chessboard.mu @@ -9,16 +9,11 @@ def main [ # In mu it is good form (though not required) to explicitly show the # hardware you rely on. # - # The chessboard also returns the same keyboard and screen objects. In mu it - # is good form to not modify ingredients of a function unless they are also - # results. Here we clearly modify both keyboard and screen, so we return - # both. - # # Here the console and screen are both 0, which usually indicates real # hardware rather than a fake for testing as you'll see below. chessboard 0/screen, 0/console - close-console # cleanup screen, keyboard and mouse + close-console # clean up screen, keyboard and mouse ] ## But enough about mu. Here's what it looks like to run the chessboard program. diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html index d4241248..f1b1c16f 100644 --- a/html/chessboard.mu.html +++ b/html/chessboard.mu.html @@ -45,16 +45,11 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># In mu it is good form (though not required) to explicitly show the</span> <span class="Comment"># hardware you rely on.</span> <span class="Comment">#</span> - <span class="Comment"># The chessboard also returns the same keyboard and screen objects. In mu it</span> - <span class="Comment"># is good form to not modify ingredients of a function unless they are also</span> - <span class="Comment"># results. Here we clearly modify both keyboard and screen, so we return</span> - <span class="Comment"># both.</span> - <span class="Comment">#</span> <span class="Comment"># Here the console and screen are both 0, which usually indicates real</span> <span class="Comment"># hardware rather than a fake for testing as you'll see below.</span> chessboard <span class="Constant">0/screen</span>, <span class="Constant">0/console</span> - close-console <span class="Comment"># cleanup screen, keyboard and mouse</span> + close-console <span class="Comment"># clean up screen, keyboard and mouse</span> ] <span class="SalientComment">## But enough about mu. Here's what it looks like to run the chessboard program.</span> |