Skip to content

Commit 13273d4

Browse files
Daniel WhiteDaniel White
authored andcommitted
Removed p from main as i can be used instead. Saves 2 bytes.
1 parent c8ca010 commit 13273d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

iota.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ F(U, V, p, r) {
6868
return 1;
6969
}
7070

71-
main(i, p) {
71+
main(i) {
7272
N ;strtok(gets(c)," ");fflush(stdout)) { // Loop, grabbing input and flushing output.
7373
Z"uci",4)) puts("id name i\nid author D\nuciok") // Reply to 'uci'.
7474
Z"i",1)) puts("readyok") // Reply to 'isready'.
@@ -81,7 +81,7 @@ main(i, p) {
8181
F(*C+C[1]*16-881, C[2]+C[3]*16-881, C[4], R);
8282
}
8383
Z"g",1)) // Go command. Make a move and print it.
84-
p=F(Q, 0, 0, R),
85-
printf("bestmove %c%i%c%i%c\n", W%16+97, W/16+1, X%16+97, X/16+1, p?32:98);
84+
i=F(Q, 0, 0, R),
85+
printf("bestmove %c%i%c%i%c\n", W%16+97, W/16+1, X%16+97, X/16+1, i?32:98);
8686
}
8787
}

0 commit comments

Comments
 (0)