- // position just before to start searching). This is needed by draw detection.
- std::vector<StateInfo> SetupState(200, StateInfo());
+ // position just before to start searching). This is needed by draw detection
+ // where, due to 50 moves rule, we need to ckeck at most 100 plies back.
+ StateInfo StateRingBuf[102], *SetupState = StateRingBuf;