Answers.Body: <p>In a bullet game, you don't send movestogo. You only do this in case of a game where there is an increment after let's say move 40 where an additional 15 minutes might be added to the clock. Even then, the engine would still need to know, how much time is added after xx moves have gone by to make proper use of the time at its disposal.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-07T08:58:11.377Z
Answers.Text: thx! but how to set time for bullet game. if I set wtime,btime without movestogo it won't work
Answers.UserDisplayName: beginner
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-07T20:20:02.030Z
Answers.Text: position startpos moves e2e4 is the correct syntax
Answers.UserDisplayName: Jens
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-08T08:53:36.143Z
Answers.Text: If I send only `startpos moves e2e4` without `wtime ,btime`   stockfish always loses on time.
Answers.UserDisplayName: beginner
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-06T20:47:29.357Z
Answers.LastActivityDate: 2021-10-06T20:47:29.357Z
Answers.UserDisplayName: Jens
Body: <p>Playing a bullet game(1 min) against UCI engine, I would send these command from GUI</p>
  <pre><code> uci
   setoption name Hash value 256
   isready
   ucinewgame
   position startpos e2e4
   go wtime 60000 btime 60000 movestogo xx
  </code></pre>
  <p>what should be the value of xx?</p>
  <p>Documentation says</p>
  <blockquote>
  <p>movestogo – Number of moves to the next time control. If this is not set, but wtime or btime are, then it is sudden death.</p>
  </blockquote>
  <p>But before the game completes how do I know how many moves would be played in the game?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-10-08T10:50:14.073Z
Comments.Text: "Number of moves to the next time control.", not "Number of moves to the end of the game"
Comments.UserDisplayName: David
Tags: <uci>
Title: UCI - what should be the value of movestogo
ThreadText: # UCI - what should be the value of movestogo
  
  (Asked by: username_0 on 2021-10-04)
  
  Playing a bullet game(1 min) against UCI engine, I would send these command from GUI
   uci
   setoption name Hash value 256
   isready
   ucinewgame
   position startpos e2e4
   go wtime 60000 btime 60000 movestogo xx
  
  what should be the value of xx?
  Documentation says
  
  movestogo – Number of moves to the next time control. If this is not set, but wtime or btime are, then it is sudden death.
  
  But before the game completes how do I know how many moves would be played in the game?
  
  **Tags:** uci
  
  > **Comments:**
  > **username_1**: "Number of moves to the next time control.", not "Number of moves to the end of the game"  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2021-10-06. Score: 1
  
  In a bullet game, you don't send movestogo. You only do this in case of a game where there is an increment after let's say move 40 where an additional 15 minutes might be added to the clock. Even then, the engine would still need to know, how much time is added after xx moves have gone by to make proper use of the time at its disposal.
  
  > **Comments:**
  > **username_0**: thx! but how to set time for bullet game. if I set wtime,btime without movestogo it won't work  
  > **username_2**: position startpos moves e2e4 is the correct syntax  
  > **username_0**: If I send only `startpos moves e2e4` without `wtime ,btime`   stockfish always loses on time.  
  
  ---
  
  