#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
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;
rrs_solution_init (&solution);
solve_board (board, &solution);
rr_client_bid (client, solution.num_moves);
+ rr_client_nobid (client);
}
while (1) {
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++) {