[Commit] rrsolve/src rrsolve.c,1.7,1.8
Carl Worth
commit at keithp.com
Thu Jul 3 12:19:16 PDT 2003
Committed by: cworth
Update of /local/src/CVS/rrsolve/src
In directory home.keithp.com:/tmp/cvs-serv17182/src
Modified Files:
rrsolve.c
Log Message:
Always issue NOBID after bidding. Fixed to use game from command line.
Index: rrsolve.c
===================================================================
RCS file: /local/src/CVS/rrsolve/src/rrsolve.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- rrsolve.c 3 Jul 2003 14:43:10 -0000 1.7
+++ rrsolve.c 3 Jul 2003 18:19:13 -0000 1.8
@@ -32,11 +32,6 @@
#include "rrsolve.h"
-#define HOST "localhost"
-#define PORT "5252"
-#define USER "rrsolve"
-#define GAME "game"
-
/* Tuning this can reduce excess reallocs */
#define RRS_BRANCHING_FACTOR_ESTIMATE 10
@@ -106,9 +101,9 @@
return 1;
}
- status = rr_client_join (client, GAME);
+ status = rr_client_join (client, args.game);
if (status == RR_STATUS_NO_GAME)
- status = rr_client_new (client, GAME);
+ status = rr_client_new (client, args.game);
if (status) {
fprintf (stderr, "Error joining or creating game: %s\n", rr_status_str (status));
return 1;
@@ -151,6 +146,7 @@
rrs_solution_init (&solution);
solve_board (board, &solution);
rr_client_bid (client, solution.num_moves);
+ rr_client_nobid (client);
}
while (1) {
@@ -187,6 +183,7 @@
rrs_solution_init (&solution);
solve_board (board, &solution);
rr_client_bid (client, solution.num_moves);
+ rr_client_nobid (client);
break;
case RR_NOTICE_ACTIVATE:
for (i = 0; i < solution.num_moves; i++) {
More information about the Commit
mailing list