X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fbots%2Fmamer%2FTourney.cc;h=56a4b141e03784ddeac7430cf320c9c463f8e507;hp=401ed3e6f28fb210a8f6a88bf247c06e587e9dd7;hb=de64701702c2b4d4d951be0e77afeda5177bc494;hpb=75ea555a410b0dd3f0f1ab9d3deaa0a6a6cf0be3 diff --git a/lasker-2.2.3/bots/mamer/Tourney.cc b/lasker-2.2.3/bots/mamer/Tourney.cc index 401ed3e..56a4b14 100644 --- a/lasker-2.2.3/bots/mamer/Tourney.cc +++ b/lasker-2.2.3/bots/mamer/Tourney.cc @@ -85,6 +85,7 @@ void Tourney::InitTourney(int n, User *u, int t, int i, char m, char s, int r, c lastCshouted = 0; status = NEW; + paused = FALSE; } //- Deconstructor --------------------------------------------------------- @@ -811,6 +812,16 @@ void Tourney::EndTourney(void) { status = DONE; }//- End EndTourney +//- IsPaused -------------------------------------------------------- +int Tourney::IsPaused(void) { + return paused; +} + +//- SetPause ----------------------- +void Tourney::SetPause(int x) { + paused = x; +}//- End SetPause + //- Announce ---------------------------------------------------------- void Tourney::Announce(void) { char temp[128]; @@ -960,6 +971,7 @@ void Tourney::TellThemWhoTheyPlay() { while((g = gameIter.Next())) { /* note that we rely on rmatch and on the ; separated commands from lasker */ + sleep(2); gMamer.XServerCom("rmatch %s %s %i %i %c %s white ; rmatch %s %s %i %i %c %s black\n", g->whiteName, g->blackName, g->time, g->inc, params.mode, Variant, g->blackName, g->whiteName, g->time, g->inc, params.mode, Variant);