Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation warning #2

Open
thuanpv opened this issue Oct 28, 2020 · 1 comment
Open

Compilation warning #2

thuanpv opened this issue Oct 28, 2020 · 1 comment

Comments

@thuanpv
Copy link
Collaborator

thuanpv commented Oct 28, 2020

When I compile the MCTS test, I get this warning

./Tests.c:114:19: warning: incompatible pointer types initializing 'seed_info_t *' with an     
      expression of type 'struct queue_entry *' [-Wincompatible-pointer-types]                 
    seed_info_t * seed = Selection(ROOT);

Can you please explain why you store a queue_entry pointer in a seed_info_t* variable?

@DonggeLiu
Copy link
Owner

I was trying to encapsulate two counters into the structure of each seed: a) The number of times it has been selected; 2) The number of new paths it has found.
They will be used when we select seeds with the UCB function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants