VictorXjoeY / Minimax

Generic Minimax algorithm for 2 player games
2 stars 0 forks source link

Improve the way that we prevent the dp from using up all memory #5

Open VictorXjoeY opened 3 years ago

VictorXjoeY commented 3 years ago

Currently we do something really ugly and lazy to prevent it from using up all memory. We just clear the entire dp once it hits its memory limit (of around 1GB) and start filling it up again.

This causes the next AI move (after clearing the dp) to take longer to calculate:

image

We should think of using some Replacement Strategies instead: https://en.wikipedia.org/wiki/Transposition_table#Replacement_strategies