Commit 5bc175e4 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Do not print empty games

parent df50c2d0
Pipeline #191220 passed with stages
in 33 minutes and 2 seconds
......@@ -462,10 +462,13 @@ self_learn (TarotPerceptron * perceptron)
free (data);
}
if (--until_print_game == 0)
{
if (!is_empty_game (game))
{
char *data = tarot_game_save_to_xml_alloc (game);
fprintf (stderr, "%s\n", data);
free (data);
}
until_print_game = 100;
}
tarot_game_free (game);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment