projects
/
crazywa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
08691ed
)
Disarm printing of debug boards
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Sat, 14 Jan 2017 10:39:13 +0000 (11:39 +0100)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Sat, 14 Jan 2017 10:39:13 +0000 (11:39 +0100)
When running under XBoard, printing a board would be seen as Thinking
Output. Now the board lines are prefixedwith #, as CECP requires.
dropper.c
patch
|
blob
|
history
diff --git
a/dropper.c
b/dropper.c
index
d0e9a35
..
85c44c3
100644
(file)
--- a/
dropper.c
+++ b/
dropper.c
@@
-603,7
+603,7
@@
PrintDBoard (char *msg, unsigned char *b, char *sep, int ranks)
{
int r, f;
printf("\n%s\n", msg);
- for(r=0; r<ranks; r++) for(f=0; f<22; f++) printf(" %02x%s", b[22*r+f], (f == 10 ? sep : f== 21 ? "\n" : ""));
+ for(r=0; r<ranks; r++) for(f=0; f<22; f++) printf("%s %02x%s", (f==0 ? "#" : ""), b[22*r+f], (f == 10 ? sep : f== 21 ? "\n" : ""));
}
void