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

Sample Size Bug #63

Open
shaardie opened this issue Jul 12, 2024 · 0 comments
Open

Sample Size Bug #63

shaardie opened this issue Jul 12, 2024 · 0 comments

Comments

@shaardie
Copy link

According to the description score should be 2 bytes and result should be 1, but looking at the code, it seems like they are both 4 Bytes, because they are defined as int:

typedef struct {
    Position pos;
    int score;  // score returned by the engine (in cp)
    int result; // game result from pos.turn's pov
} Sample;

and written with they actual size:

fwrite(&g->vecSamples[i].score, sizeof(g->vecSamples[i].score), 1, out);
fwrite(&g->vecSamples[i].result, sizeof(g->vecSamples[i].result), 1, out);
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

1 participant