my -> mcts ²
This commit is contained in:
parent
dd4e5824e9
commit
54b40d7918
1 changed files with 5 additions and 5 deletions
|
@ -7,8 +7,8 @@ int boardwidth = 0;
|
||||||
int boardheight = 0;
|
int boardheight = 0;
|
||||||
bool white_turn = true;
|
bool white_turn = true;
|
||||||
|
|
||||||
#ifndef VERBOSE_MY_PLAYER
|
#ifndef VERBOSE_mcts_plAYER
|
||||||
#define VERBOSE_MY_PLAYER
|
#define VERBOSE_mcts_plAYER
|
||||||
bool verbose = true;
|
bool verbose = true;
|
||||||
bool showboard_at_each_move = false;
|
bool showboard_at_each_move = false;
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,7 +24,7 @@ void help() {
|
||||||
fprintf(stderr, " showboard\n");
|
fprintf(stderr, " showboard\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void name() { printf("= my_player\n\n"); }
|
void name() { printf("= mcts_player\n\n"); }
|
||||||
|
|
||||||
void newgame() {
|
void newgame() {
|
||||||
if ((boardheight < 1 || boardheight > 10) &&
|
if ((boardheight < 1 || boardheight > 10) &&
|
||||||
|
@ -96,12 +96,12 @@ int main(void) {
|
||||||
setbuf(stdout, 0);
|
setbuf(stdout, 0);
|
||||||
setbuf(stderr, 0);
|
setbuf(stderr, 0);
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "my_player started\n");
|
fprintf(stderr, "mcts_player started\n");
|
||||||
}
|
}
|
||||||
char a, b, c, d; // for play cmd
|
char a, b, c, d; // for play cmd
|
||||||
for (std::string line; std::getline(std::cin, line);) {
|
for (std::string line; std::getline(std::cin, line);) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
fprintf(stderr, "my_player receive %s\n", line.c_str());
|
fprintf(stderr, "mcts_player receive %s\n", line.c_str());
|
||||||
}
|
}
|
||||||
if (echo_on) {
|
if (echo_on) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
|
|
Reference in a new issue