[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnugo-devel] experimental reading compilation fix
From: |
Evan Berggren Daniel |
Subject: |
[gnugo-devel] experimental reading compilation fix |
Date: |
Sat, 5 Oct 2002 21:37:05 -0400 (EDT) |
This patch fixes compile errors in the experimental reading code.
I assume this is what it was supposed to be, but I could be wrong.
Thanks
Evan Daniel
Index: engine/reading.c
===================================================================
RCS file: /cvsroot/gnugo/gnugo/engine/reading.c,v
retrieving revision 1.78
diff -u -d -r1.78 reading.c
--- engine/reading.c 28 Sep 2002 14:15:26 -0000 1.78
+++ engine/reading.c 6 Oct 2002 01:35:30 -0000
@@ -2410,7 +2410,7 @@
break;
if (moves[k].pos == move) {
- if (value <= moves.pos[k].value)
+ if (value <= moves[k].value)
return 1;
else
break;
@@ -2429,9 +2429,9 @@
int k;
for (k = 0; k < MAX_READING_MOVES; k++) {
if (!moves[k].pos) {
- moves.pos[k].pos = move;
- moves.pos[k].value = value;
- moves.pos[k].name = name;
+ moves[k].pos = move;
+ moves[k].value = value;
+ moves[k].name = name;
moves[++k].pos = 0;
break;
}
@@ -2450,9 +2450,9 @@
moves[j+1].name = moves[j].name;
}
- moves.pos[k].pos = move;
- moves.pos[k].value = value;
- moves.pos[k].name = name;
+ moves[k].pos = move;
+ moves[k].value = value;
+ moves[k].name = name;
break;
}
}
@@ -2649,7 +2649,7 @@
for (k = 0; k < MAX_READING_MOVES; k++) {
if (!moves[k].pos)
break;
- TRACE("address@hidden ", moves.pos[k].name, moves[k].pos);
+ TRACE("address@hidden ", moves[k].name, moves[k].pos);
}
TRACE("\n");
}
@@ -2666,7 +2666,7 @@
if (moves[k].pos == NO_MOVE)
break;
sprintf(pos, "%s (%s-%d) %n", location_to_string(moves[k].pos),
- moves.pos[k].name, moves[k].value, &chars);
+ moves[k].name, moves[k].value, &chars);
pos += chars;
}
sgftreeAddComment(sgf_dumptree, buf);
@@ -2677,7 +2677,7 @@
if (moves[k].pos == NO_MOVE)
break;
- gg_snprintf(namebuf, 128, "%s(%d)", moves.pos[k].name, moves[k].value);
+ gg_snprintf(namebuf, 128, "%s(%d)", moves[k].name, moves[k].value);
if (k > 3 + skipped && k > 12 - stackp + skipped) {
if (sgf_dumptree) {
if (trymove(moves[k].pos, next_color, namebuf, str, 0, 0)) {
@@ -2696,7 +2696,7 @@
int other_tactic;
ASSERT1(countlib(str) >= 1, str);
RTRACE("%sing %1m at %1m (Pattern %s)\n", attack_defend_str, str,
- moves.pos[k].pos, moves[k].name);
+ moves[k].pos, moves[k].name);
if (sgf_dumptree) {
char buf[500];
sprintf(buf, "tactical_pat komaster: %d %s new_komaster: %d %s
ko_move: %d",
@@ -2728,7 +2728,7 @@
same_tactic = do_find_defense(str, 0, new_komaster, new_kom_pos);
if (!ko_move && other_tactic == 0 && same_tactic != 0) {
- *move = moves.pos[k].pos;
+ *move = moves[k].pos;
popgo();
SGFTRACE(moves[k].pos, WIN,
"tactic successful - no defense, ko sub-attack");
@@ -2744,10 +2744,10 @@
}
if (!other_tactic) {
if (ko_move) {
- TRACE("Ko move good: %1m\n", moves.pos[k].pos);
+ TRACE("Ko move good: %1m\n", moves[k].pos);
other_tactic = KO_A;
if (other_tactic < best_other_tactic) {
- best_move = moves.pos[k].pos;
+ best_move = moves[k].pos;
best_other_tactic = other_tactic ;
}
}
@@ -2755,13 +2755,13 @@
popgo();
/* FIXME: add explicit attack/defense verbage here */
SGFTRACE(moves[k].pos, WIN, "tactic successful - no counter.");
- *move = moves.pos[k].pos;
+ *move = moves[k].pos;
return WIN;
}
}
else if (other_tactic < best_other_tactic) {
/* May need to check ko_move in this case, too */
- best_move = moves.pos[k].pos;
+ best_move = moves[k].pos;
best_other_tactic = other_tactic;
}
popgo();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnugo-devel] experimental reading compilation fix,
Evan Berggren Daniel <=