[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] Minor irritation
From: |
Heikki Levanto |
Subject: |
[gnugo-devel] Minor irritation |
Date: |
Thu, 27 Mar 2003 21:05:42 +0100 |
User-agent: |
Mutt/1.4i |
Every now and then, when I return to GnuGo, I look at the ascii diagrams,
and get confused about the X's and O's vs. the Blacks and Whites.
Today, having nothing better to do, I decided to rid myself (and hopefully
others) of similar confusions. This also served to refresh my memory on the
noble art of making a patch.
This is such a simple patch, that it can not have any effect on the
regressions. I still expect someone to point out at least one, probably two,
bugs or misunderstandings ;-)
Best
Heikki
diff -ruN gnugo-ref/engine/showbord.c gnugo-work/engine/showbord.c
--- gnugo-ref/engine/showbord.c 2003-02-13 21:09:42.000000000 +0100
+++ gnugo-work/engine/showbord.c 2003-03-27 20:55:51.000000000 +0100
@@ -373,11 +373,11 @@
if (xo == 0 && ((board_size < 10 && i == board_size-2)
|| (board_size >= 10 && i == 8)))
- fprintf(stderr, " WHITE has captured %d stones", black_captured);
+ fprintf(stderr, " WHITE (O) has captured %d stones", black_captured);
if (xo == 0 && ((board_size < 10 && i == board_size-1)
|| (board_size >= 10 && i == 9)))
- fprintf(stderr, " BLACK has captured %d stones", white_captured);
+ fprintf(stderr, " BLACK (X) has captured %d stones", white_captured);
if (xo == 3) {
if (i == board_size-5)
@@ -421,11 +421,11 @@
if ((board_size < 10 && i == board_size-2)
|| (board_size >= 10 && i == 8))
- fprintf(outfile, " WHITE has captured %d stones", black_captured);
+ fprintf(outfile, " WHITE (O) has captured %d stones",
black_captured);
if ((board_size < 10 && i == board_size-1)
|| (board_size >= 10 && i == 9))
- fprintf(outfile, " BLACK has captured %d stones", white_captured);
+ fprintf(outfile, " BLACK (X) has captured %d stones",
white_captured);
}
fprintf(outfile, "\n");
diff -ruN gnugo-ref/interface/play_ascii.c gnugo-work/interface/play_ascii.c
--- gnugo-ref/interface/play_ascii.c 2003-02-26 01:40:21.000000000 +0100
+++ gnugo-work/interface/play_ascii.c 2003-03-27 20:54:46.000000000 +0100
@@ -194,8 +194,8 @@
set_handicap_spots(board_size);
printf("\n");
- printf(" White has captured %d pieces\n", black_captured);
- printf(" Black has captured %d pieces\n", white_captured);
+ printf(" White (O) has captured %d pieces\n", black_captured);
+ printf(" Black (X) has captured %d pieces\n", white_captured);
if (showscore) {
if (current_score_estimate == NO_SCORE)
printf(" No score estimate is available yet.\n");
--
Heikki Levanto LSD - Levanto Software Development <address@hidden>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] Minor irritation,
Heikki Levanto <=