We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb59d61 commit ad55907Copy full SHA for ad55907
src/AI/AlphaBeta/Persistent.hs
@@ -402,6 +402,12 @@ putRecordFile board depth side value = Metrics.timed "cache.put.file" $ do
402
Second -> CacheItem {ciFirst = Nothing, ciSecond = Just value}
403
putRecordFileB bstr newData
404
405
+putStatsFile :: Board -> Stats -> Storage ()
406
+putStatsFile board stats = do
407
+ let newData = PerBoardData M.empty (Just stats)
408
+ bstr = encodeBoard board
409
+ putRecordFileB bstr newData
410
+
411
initFile :: Storage ()
412
initFile = do
413
seek IndexFile 0
0 commit comments