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
......@@ -463,9 +463,12 @@ self_learn (TarotPerceptron * perceptron)
}
if (--until_print_game == 0)
{
char *data = tarot_game_save_to_xml_alloc (game);
fprintf (stderr, "%s\n", data);
free (data);
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