Answers.Body: <p>The longest known sequence is 22 plies long.</p>
  <pre><code>[Title &quot;Alexey Khanyan, Tim Krabbe's Website Diary Entry #267 2008, Mate In 11&quot;]
  [FEN &quot;4Q2Q/4r3/4n1n1/1bbK1krn/RR1RR1RR/2qn1R1n/4n1nN/Q3Q3 b - - 0 1&quot;]
  [startflipped &quot;&quot;]
  
  1... Ng2f4+ 2. Rfxf4+ N2xf4+ 3. Rgxf4+ Nh3xf4+ 4. Rhxf4+ Ndxf4+ 5. Rxf4+ Nhxf4+ 6. Rxf4+ Ngxf4+ 7. Rxf4+ Nxf4+ 8. Rxf4+ Kxf4+ 9. Qee5+ Qxe5+ 10. Qaxe5+ Rgxe5+ 11. Qxe5+ Rxe5+ 12. Qxe5#
  </code></pre>
  <p>Source: <a href="https://timkr.home.xs4all.nl/chess2/diary_14.htm" rel="noreferrer">Diary Entry #267</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-16T11:51:00.357Z
Answers.LastActivityDate: 2021-09-16T11:51:00.357Z
Answers.UserDisplayName: Rewan Demontay
Answers.Body: <p>We don't know-. For instance, it's entirely possible the starting position is just mate in 10000.</p>
  <p>However, the obvious answer if we modify the question slightly to the longest forced mate known can be found in an endgame tablebase (a collection of endgame positions, with evaluations and time to mate). The  <a href="https://syzygy-tables.info/" rel="nofollow noreferrer">Syzygy</a> tablebase is an example. The current record (ignoring the 50 move rule) is 546 with <a href="https://images.chesscomfiles.com/uploads/v1/images_users/tiny_mce/vickalan/php9ksD5H.jpeg" rel="nofollow noreferrer">this position</a> (as mentioned on <a href="https://en.wikipedia.org/wiki/Endgame_tablebase#Endgame_theory" rel="nofollow noreferrer">Wikipedia</a>). Most tablebases ignore the 50 move rule, and as such I cannot find any note on the longest forced mate with the 50 move rule.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-15T21:23:09.110Z
Answers.Text: My understanding is that the question is about situations where neither player can prevent mate, even if both players cooperate to avoid it. In such a position, there is no legal way to draw. The starting position is not such a position.
Answers.UserDisplayName: Brian McCutchon
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-15T23:01:08.583Z
Answers.Text: @Brian-McCutchon is right. If that number X was found, it would be possible to create the worst ai ever. Lets say the value of X is 14, by calculating 14+1 moves ahead, he will be able to know with 100% certainty if any of the moves it is will be selecting for this move can lead to a win at the future or not and the ai would avoid such move.
  
  The 546 move is not a valid answer because mate is not forced to happen, its possible to black mate white, depending of what white/black do.
Answers.UserDisplayName: Colleg an Delta
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-16T01:49:13.233Z
Answers.Text: Ah my bad, I misread the question- apologies.
Answers.UserDisplayName: pulsar512b
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-09-15T20:10:34.647Z
Answers.LastActivityDate: 2021-09-29T12:45:50.163Z
Answers.LastEditDate: 2021-09-29T12:45:50.163Z
Answers.UserDisplayName: pulsar512b
Body: <p>There are positions where no matter what legal move black or white does during this sequence of moves, an specific player, will always be mated after X moves (sometimes earlier, but after X moves its a certain thing).</p>
  <p>What is the position with biggest value for X?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-15T21:25:56.733Z
Comments.Text: Could you add an example of such a position?
Comments.UserDisplayName: Brian McCutchon
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-16T00:37:02.327Z
Comments.Text: Do you mean something like this position? https://chess.stackexchange.com/questions/4963/longest-sequence-of-mutually-forced-moves/4965#4965
Comments.UserDisplayName: bof
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-16T09:58:29.683Z
Comments.Text: The problemist's MatPlus Forum surely will know! This is a known problem theme, bof gave an example that is forced but doesn't lead to a mate. A simple example (forced mate)  would be Kh6 Bh5 - Kh8 and now add a lot of queens of both color attacking g7. After Qg7+ a big brawl ensues, the last queen mates.
Comments.UserDisplayName: Hauke Reddmann
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-16T15:44:31.703Z
Comments.Text: Just confirming you dont mean something like the following;
  
  http://kirill-kryukov.com/chess/longest-checkmates/longest-checkmates-sorted-by-length.shtml
Comments.UserDisplayName: Dheebs
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-18T19:22:11.250Z
Comments.Text: To make easier to understand, my question basically means, how many moves ahead would the AI need to see to be able to make sure it always lose the game. If the ai checks X moves ahead, it will know that if its plan was to lose the game, its plan failed, because he WILL mate the other player.
Comments.UserDisplayName: Colleg an Delta
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-18T22:43:00.817Z
Comments.Text: David Bateman, this is not what I want, at position q7/7k/8/6R1/8/8/2P2R2/K7 w - - 0 1 of your list as some example, there is a possibility of white wining and the possibility of black wining. White, the player to play, wont ALWAYS win.
Comments.UserDisplayName: Colleg an Delta
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2021-09-19T03:21:35.950Z
Comments.Text: The position linked by bof is one example, The alexey khanyan, tim krabble answer is another example.
Comments.UserDisplayName: Colleg an Delta
Tags: <problems><records><forced-move>
Title: What is the chess position with biggest X, where no matter what legal move black/white does, a specific player will be mated at a max X moves later?
ThreadText: # What is the chess position with biggest X, where no matter what legal move black/white does, a specific player will be mated at a max X moves later?
  
  (Asked by: username_0 on 2021-09-15)
  
  There are positions where no matter what legal move black or white does during this sequence of moves, an specific player, will always be mated after X moves (sometimes earlier, but after X moves its a certain thing).
  
  What is the position with biggest value for X?
  
  **Tags:** problems, records, forced-move
  
  > **Comments:**
  > **username_1**: Could you add an example of such a position?  
  > **username_2**: Do you mean something like this position? https://chess.stackexchange.com/questions/4963/longest-sequence-of-mutually-forced-moves/4965#4965  
  > **username_3**: The problemist's MatPlus Forum surely will know! This is a known problem theme, bof gave an example that is forced but doesn't lead to a mate. A simple example (forced mate)  would be Kh6 Bh5 - Kh8 and now add a lot of queens of both color attacking g7. After Qg7+ a big brawl ensues, the last queen mates.  
  > **username_4**: Just confirming you dont mean something like the following;  http://kirill-kryukov.com/chess/longest-checkmates/longest-checkmates-sorted-by-length.shtml  
  > **username_0**: To make easier to understand, my question basically means, how many moves ahead would the AI need to see to be able to make sure it always lose the game. If the ai checks X moves ahead, it will know that if its plan was to lose the game, its plan failed, because he WILL mate the other player.  
  > **username_0**: David Bateman, this is not what I want, at position q7/7k/8/6R1/8/8/2P2R2/K7 w - - 0 1 of your list as some example, there is a possibility of white wining and the possibility of black wining. White, the player to play, wont ALWAYS win.  
  > **username_0**: The position linked by bof is one example, The alexey khanyan, tim krabble answer is another example.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_5 on 2021-09-16. Score: 7
  
  The longest known sequence is 22 plies long.
  
  ```
  [Title "Alexey Khanyan, Tim Krabbe's Website Diary Entry #267 2008, Mate In 11"]
  [FEN "4Q2Q/4r3/4n1n1/1bbK1krn/RR1RR1RR/2qn1R1n/4n1nN/Q3Q3 b - - 0 1"]
  [startflipped ""]
  
  1... Ng2f4+ 2. Rfxf4+ N2xf4+ 3. Rgxf4+ Nh3xf4+ 4. Rhxf4+ Ndxf4+ 5. Rxf4+ Nhxf4+ 6. Rxf4+ Ngxf4+ 7. Rxf4+ Nxf4+ 8. Rxf4+ Kxf4+ 9. Qee5+ Qxe5+ 10. Qaxe5+ Rgxe5+ 11. Qxe5+ Rxe5+ 12. Qxe5#
  
  ```
  
  Source: [Diary Entry #267](https://timkr.home.xs4all.nl/chess2/diary_14.htm)
  
  
  ---
  
  ### Answer by username_6 on 2021-09-15. Score: -1
  
  We don't know-. For instance, it's entirely possible the starting position is just mate in 10000.
  
  However, the obvious answer if we modify the question slightly to the longest forced mate known can be found in an endgame tablebase (a collection of endgame positions, with evaluations and time to mate). The [Syzygy](https://syzygy-tables.info/) tablebase is an example. The current record (ignoring the 50 move rule) is 546 with [this position](https://images.chesscomfiles.com/uploads/v1/images_users/tiny_mce/vickalan/php9ksD5H.jpeg) (as mentioned on [Wikipedia](https://en.wikipedia.org/wiki/Endgame_tablebase#Endgame_theory)). Most tablebases ignore the 50 move rule, and as such I cannot find any note on the longest forced mate with the 50 move rule.
  
  > **Comments:**
  > **username_1**: My understanding is that the question is about situations where neither player can prevent mate, even if both players cooperate to avoid it. In such a position, there is no legal way to draw. The starting position is not such a position.  
  > **username_0**: @username_1-username_1 is right. If that number X was found, it would be possible to create the worst ai ever. Lets say the value of X is 14, by calculating 14+1 moves ahead, he will be able to know with 100% certainty if any of the moves it is will be selecting for this move can lead to a win at the future or not and the ai would avoid such move.  The 546 move is not a valid answer because mate is not forced to happen, its possible to black mate white, depending of what white/black do.  
  > **username_6**: Ah my bad, I misread the question- apologies.  
  
  ---
  
  