MCPcopy Create free account
hub / github.com/dds-bridge/dds / Reset

Method Reset

library/src/ab_stats.cpp:34–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34void ABstats::Reset()
35{
36 for (int depth = 0; depth < DDS_MAXDEPTH; depth++)
37 ABnodes.list[depth] = 0;
38
39 ABnodes.sum = 0;
40 ABnodes.sumWeighted = 0;
41
42 for (int side = 0; side < 2; side++)
43 {
44 for (int depth = 0; depth < DDS_MAXDEPTH; depth++)
45 ABsides[side].list[depth] = 0;
46
47 ABsides[side].sum = 0;
48 ABsides[side].sumWeighted = 0;
49 }
50
51 for (int place = 0; place < AB_SIZE; place++)
52 {
53 for (int depth = 0; depth < DDS_MAXDEPTH; depth++)
54 ABplaces[place].list[depth] = 0;
55
56 ABplaces[place].sum = 0;
57 ABplaces[place].sumWeighted = 0;
58 }
59}
60
61
62void ABstats::ResetCum()

Callers 4

solve_board_internalFunction · 0.45
solve_same_boardFunction · 0.45
analyse_later_boardFunction · 0.45
SetResourcesFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected