Skip to content

Commit

Permalink
comment on empty random move
Browse files Browse the repository at this point in the history
  • Loading branch information
drbeco committed Jul 4, 2018
1 parent b7383ee commit 9c9fad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xadreco version "5.84.180703.225612"
xadreco version "5.84.180703.231002"
4 changes: 2 additions & 2 deletions xadreco.c
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ int main(int argc, char *argv[])
{
// printdbg(debug, "# case 'e' 732: Computador sem lances validos 1. Erro: 35\n");
printdbg(debug, "# xadreco : Error. I don't know what to play... (main)\n");
res = randommove(&tabu);
res = randommove(&tabu); /* BUG no need for this second call */
if(res == 'e') //vazio mesmo! Nem aleatorio foi!
{
printdbg(debug, "# xadreco : I really don't know what to play... resigning!\n");
Expand All @@ -955,14 +955,14 @@ int main(int argc, char *argv[])
strcpy(ultimo_resultado, "1-0 {Black resigns}");
printf2("1-0 {Black resigns}\n");
}
// primeiro = segundo = 'h';
}
else
{
printdbg(debug, "# xadreco : Playing a random move (main)!\n");
res = joga_em(&tabu, *result.plance, 1);
}
}
// primeiro = segundo = 'h';
break;
// continue;
case 'x': //xeque: joga novamente
Expand Down

0 comments on commit 9c9fad5

Please sign in to comment.