Skip to content

Set probabilities for illegal moves in a loop #885

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

Merged
merged 2 commits into from
Jun 11, 2019

Conversation

DanielUranga
Copy link
Member

Set probabilities for illegal moves in a loop instead of using std::memset.
std::memset(result.probabilities, -1, sizeof(result.probabilities)); is setting all bytes in result.probabilites as 0xffffffff.

Set probabilities for illegal moves in a loop instead of using std::memset.
@DanielUranga DanielUranga requested review from mooskagh and Tilps June 10, 2019 23:49
Use std::fill instead of a for loop during moves probabilities array initialization.
@mooskagh mooskagh merged commit 4483924 into master Jun 11, 2019
@DanielUranga DanielUranga deleted the trainingdata-illegal-moves-fix branch June 11, 2019 15:29
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

Successfully merging this pull request may close these issues.

3 participants