MCPcopy Create free account
hub / github.com/cutechess/cutechess / initialize

Method initialize

projects/lib/src/timecontrol.cpp:214–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void TimeControl::initialize()
215{
216 m_expired = false;
217 m_lastMoveTime = 0;
218
219 if (m_timePerTc != 0)
220 {
221 m_timeLeft = m_timePerTc + m_increment;
222 m_movesLeft = m_movesPerTc;
223 }
224 else if (m_timePerMove != 0)
225 m_timeLeft = m_timePerMove;
226}
227
228bool TimeControl::isInfinite() const
229{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected