Commit 6168376a authored by Vivien Kraus's avatar Vivien Kraus

Don't expand the dog

parent 3e6297ba
Pipeline #104884 passed with stages
in 7 minutes and 49 seconds
......@@ -1935,8 +1935,7 @@ game_iterator_next_value (TarotGameIterator * iterator)
game_n_players (&(iterator->handle))
&& game_get_discard_according_to (&(iterator->handle),
game_get_dealt (&
(iterator->
handle)),
(iterator->handle)),
&cards) == 0)
|| game_get_discard (&(iterator->handle), &cards) == 0)
{
......
......@@ -279,11 +279,16 @@ search_best_select (const TarotMcts * mcts, TarotMctsTreeIterator node,
int right_ok = (right != TREE_NULL);
size_t this_n_simulations = n_simulations;
const TarotMctsNode *node_data = tarot_mcts_tree_get (mcts->tree, node);
double value = compute_score (node_data, n_simulations);
if (value > *best_value)
double value;
if (node_data->event != NULL
&& tarot_game_event_type (node_data->event) != TAROT_DOG_EVENT)
{
*best_value = value;
*best = node;
value = compute_score (node_data, n_simulations);
if (value > *best_value)
{
*best_value = value;
*best = node;
}
}
this_n_simulations = node_data->n_simulations;
if (left_ok)
......
Markdown is supported
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