about summary refs log tree commit diff stats
path: root/chessboard.mu
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-11-18 22:26:20 -0800
committerKartik K. Agaram <vc@akkartik.com>2015-12-15 10:20:41 -0800
commita5ab5b24e71fc93c58cb2d00fbde54d874a6263a (patch)
tree6c951d8671620d61c2ee6371e853c305a2f0c477 /chessboard.mu
parent7a21118cce30002d3bb14b957244b7f571e90c3a (diff)
downloadmu-a5ab5b24e71fc93c58cb2d00fbde54d874a6263a.tar.gz
chessboard.mu now working
Diffstat (limited to 'chessboard.mu')
-rw-r--r--chessboard.mu6
1 files changed, 3 insertions, 3 deletions
diff --git a/chessboard.mu b/chessboard.mu
index 550fa3c8..c8c84eed 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -240,7 +240,7 @@ container move [
 ]
 
 # prints only error messages to screen
-recipe read-move stdin:address:channel, screen:address:screen -> result:address:move, quit?:boolean, error?:boolean [
+recipe read-move stdin:address:channel, screen:address:screen -> result:address:move, quit?:boolean, error?:boolean, stdin:address:channel, screen:address:screen [
   local-scope
   load-ingredients
   from-file:number, quit?:boolean, error?:boolean <- read-file stdin, screen
@@ -270,7 +270,7 @@ recipe read-move stdin:address:channel, screen:address:screen -> result:address:
 ]
 
 # valid values for file: 0-7
-recipe read-file stdin:address:channel, screen:address:screen -> file:number, quit:boolean, error:boolean [
+recipe read-file stdin:address:channel, screen:address:screen -> file:number, quit:boolean, error:boolean, stdin:address:channel, screen:address:screen [
   local-scope
   load-ingredients
   c:character, stdin <- read stdin
@@ -363,7 +363,7 @@ recipe read-rank stdin:address:channel, screen:address:screen -> rank:number, qu
 
 # read a character from the given channel and check that it's what we expect
 # return true on error
-recipe expect-from-channel stdin:address:channel, expected:character, screen:address:screen -> result:boolean [
+recipe expect-from-channel stdin:address:channel, expected:character, screen:address:screen -> result:boolean, stdin:address:channel, screen:address:screen [
   local-scope
   load-ingredients
   c:character, stdin <- read stdin