about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--chessboard.mu20
-rw-r--r--html/chessboard.mu.html20
2 files changed, 20 insertions, 20 deletions
diff --git a/chessboard.mu b/chessboard.mu
index c147c771..9f73561e 100644
--- a/chessboard.mu
+++ b/chessboard.mu
@@ -245,28 +245,28 @@ def read-move stdin:address:shared:channel, screen:address:shared:screen -> resu
   local-scope
   load-ingredients
   from-file:number, quit?:boolean, error?:boolean <- read-file stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   # construct the move object
   result:address:shared:move <- new move:type
   x:address:number <- get-address *result, from-file:offset
   *x <- copy from-file
   x <- get-address *result, from-rank:offset
   *x, quit?, error? <- read-rank stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   error? <- expect-from-channel stdin, 45/dash, screen
-  return-if error?, 0/dummy, 0/quit, error?
+  return-if error?, 0/dummy, 0/quit
   x <- get-address *result, to-file:offset
   *x, quit?, error? <- read-file stdin, screen
-  return-if quit?:boolean, 0/dummy, quit?:boolean, error?:boolean
-  return-if error?:boolean, 0/dummy, quit?:boolean, error?:boolean
+  return-if quit?:boolean, 0/dummy
+  return-if error?:boolean, 0/dummy
   x:address:number <- get-address *result, to-rank:offset
   *x, quit?, error? <- read-rank stdin, screen
-  return-if quit?, 0/dummy, quit?, error?
-  return-if error?, 0/dummy, quit?, error?
+  return-if quit?, 0/dummy
+  return-if error?, 0/dummy
   error? <- expect-from-channel stdin, 10/newline, screen
-  return-if error?, 0/dummy, 0/quit, error?
+  return-if error?, 0/dummy, 0/quit
   return result, quit?, error?
 ]
 
diff --git a/html/chessboard.mu.html b/html/chessboard.mu.html
index 7edc5632..2f07b96d 100644
--- a/html/chessboard.mu.html
+++ b/html/chessboard.mu.html
@@ -273,28 +273,28 @@ body { font-size: 12pt; font-family: monospace; color: #eeeeee; background-color
   <span class="Constant">local-scope</span>
   <span class="Constant">load-ingredients</span>
   from-file:number, quit?:boolean, error?:boolean<span class="Special"> &lt;- </span>read-file stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   <span class="Comment"># construct the move object</span>
   result:address:shared:move<span class="Special"> &lt;- </span>new <span class="Constant">move:type</span>
   x:address:number<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">from-file:offset</span>
   *x<span class="Special"> &lt;- </span>copy from-file
   x<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">from-rank:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-rank stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   error?<span class="Special"> &lt;- </span>expect-from-channel stdin, <span class="Constant">45/dash</span>, screen
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>, error?
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>
   x<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">to-file:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-file stdin, screen
-  <span class="muControl">return-if</span> quit?:boolean, <span class="Constant">0/dummy</span>, quit?:boolean, error?:boolean
-  <span class="muControl">return-if</span> error?:boolean, <span class="Constant">0/dummy</span>, quit?:boolean, error?:boolean
+  <span class="muControl">return-if</span> quit?:boolean, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?:boolean, <span class="Constant">0/dummy</span>
   x:address:number<span class="Special"> &lt;- </span>get-address *result, <span class="Constant">to-rank:offset</span>
   *x, quit?, error?<span class="Special"> &lt;- </span>read-rank stdin, screen
-  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>, quit?, error?
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, quit?, error?
+  <span class="muControl">return-if</span> quit?, <span class="Constant">0/dummy</span>
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>
   error?<span class="Special"> &lt;- </span>expect-from-channel stdin, <span class="Constant">10/newline</span>, screen
-  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>, error?
+  <span class="muControl">return-if</span> error?, <span class="Constant">0/dummy</span>, <span class="Constant">0/quit</span>
   <span class="muControl">return</span> result, quit?, error?
 ]
 
class='oid'>b39ceb27 ^
683d53ca ^
b39ceb27 ^


683d53ca ^

b39ceb27 ^
df0b469f ^
ccd792da ^
51530916 ^
ac0e9db5 ^
7d13531e ^



eb3a527a ^


fb4836dc ^
eb3a527a ^
51530916 ^

0f125d5f ^
ac0e9db5 ^
86acd630 ^

0f125d5f ^
eb3a527a ^
65ccad4c ^
6673e1fc ^
40be2522 ^
eb3a527a ^



51530916 ^
f278a15d ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97