X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Frrsolve.c;fp=src%2Frrsolve.c;h=1057481222568558e3f3f787f03820a5fe40a908;hb=f00c625cdf861b14884dc1a457e14dafbec83bbd;hp=fd85a57b1259a3983b2fec474fcb65f0d469241b;hpb=073736b9a3889b8ca726bf4e16067c4af11d1504;p=rrsolve diff --git a/src/rrsolve.c b/src/rrsolve.c index fd85a57..1057481 100644 --- a/src/rrsolve.c +++ b/src/rrsolve.c @@ -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 @@ main (int argc, char *argv[]) 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 @@ handle_events (rr_client_t *client) 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 @@ handle_events (rr_client_t *client) 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++) {