Skip to content

Commit

Permalink
probably fix for rare NST bug
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisSoemers committed May 25, 2024
1 parent 79d02cf commit 424eed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AI/src/search/mcts/playout/NST.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected static class NSTMoveSelector extends PlayoutMoveSelector
)
);

if (nGramStats == null)
if (nGramStats == null || nGramStats.visitCount <= 0)
break;

++numNGramsConsidered;
Expand Down

0 comments on commit 424eed9

Please sign in to comment.