diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2016-03-09 14:54:41 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2016-03-09 14:54:41 -0800 |
commit | e66851d897a378980e599134f90eb7a95f14787f (patch) | |
tree | 42d0ca4f3a5033a333cdba9a44d61750538c0346 /html/chessboard.mu.html | |
parent | c0e9154d6a1fa116871794a161c6f75a71742ed4 (diff) | |
download | mu-e66851d897a378980e599134f90eb7a95f14787f.tar.gz |
2746
Diffstat (limited to 'html/chessboard.mu.html')
-rw-r--r-- | html/chessboard.mu.html | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html index e0042eaf..7edc5632 100644 --- a/html/chessboard.mu.html +++ b/html/chessboard.mu.html @@ -29,17 +29,16 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color <span class="Comment"># Chessboard program: you type in moves in algebraic notation, and it'll</span> <span class="Comment"># display the position after each move.</span> -<span class="Comment"># recipes are mu's names for functions</span> <span class="muRecipe">def</span> main [ open-console <span class="Comment"># take control of screen, keyboard and mouse</span> - <span class="Comment"># The chessboard recipe takes keyboard and screen objects as 'ingredients'.</span> + <span class="Comment"># The chessboard function takes keyboard and screen objects as 'ingredients'.</span> <span class="Comment">#</span> <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 recipe unless they are also</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> |