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

Store moves statistics per board and use them for AI #6

Open
portnov opened this issue Nov 6, 2018 · 1 comment
Open

Store moves statistics per board and use them for AI #6

portnov opened this issue Nov 6, 2018 · 1 comment

Comments

@portnov
Copy link
Owner

portnov commented Nov 6, 2018

For each board, store:

  • how many times did we encounter this board in a real game
  • sum of all scores that we had in that games by the end
  • minimum and maximum scores

Questions:

  • do we need to store this information for each depth value? - no, we dont. We will count only end results of the game.
  • store this information in the same file as cache, or in separate one? - let's start from single file.
  • How exactly to use this information? Options:

a) If for this board we have enough statistics, then use statistics, otherwise try to use cache or calculate score.
b) First calculate score; then if some moves lead to equal score, then check for statistics.

portnov added a commit that referenced this issue Dec 3, 2018
portnov added a commit that referenced this issue Dec 4, 2018
@portnov
Copy link
Owner Author

portnov commented Dec 5, 2018

For initial board, we obviously will have minScore = loose, maxScore = win. This does not say anything.
So it only makes sense to use average score, and only when number of games is large enough. Possible criteria: number of games > number of possible moves.

portnov added a commit that referenced this issue Dec 7, 2018
portnov added a commit that referenced this issue Dec 7, 2018
portnov added a commit that referenced this issue Dec 10, 2018
portnov added a commit that referenced this issue Dec 20, 2018
@portnov portnov changed the title Game statistics Store moves statistics per board and use them for AI Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant