Answers.Body: <p>I make it 21 moves, but it's quite likely that my home-made Python code (too long and messy to post here!) has mistakes, so please take this with a grain of salt.  I get 112 positions which require 21 (white) moves to mate.  The first one on the list is the following board, with black to play:</p>
  
  <p><img src="https://i.sstatic.net/ZSuel.png" alt="White king on A1, black king on C2, white janus on h1"></p>
  
  <p>(Janus shown as a bishop because I couldn't easily find a suitable graphic.  Image created using <a href="http://www.apronus.com/chess/wbeditor.php" rel="noreferrer">http://www.apronus.com/chess/wbeditor.php</a>)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-30T09:05:58.757Z
Answers.Text: The result looks plausible to me: There are two more files compared to the 8x8 board, so the King chase is two files longes. You nedd one Janus move and one white King move for each file.
Answers.UserDisplayName: Sir Cornflakes
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-10-16T15:10:43.163Z
Answers.Text: In [this page of results](https://greenchess.net/endgame.php?type=fairy), the author calls this bishop+knight combo an archbishop. They give lengths of longest wins on the 10x8 board, and for king and archbishop and king their figure is 21 moves, agreeing with your answer.
Answers.UserDisplayName: Rosie F
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-27T09:38:16.220Z
Answers.LastActivityDate: 2015-04-27T09:38:16.220Z
Answers.UserDisplayName: Alexander Hanysz
Answers.Body: <p>I don't know the exact answer for the 10x8 board (used e.g. in Capablanca Chess, where your Janus is called the Archbishop), but I have something that could get you well along toward an exact answer, though with some effort on your part (see further below). On the 8x8 board the max DTM is 17 moves (as you may already know). My conjecture is that the 10x8 answer won't be far off from that, and I'd bet a small sum that it's no more than 19 moves. (After all, if the defending king starts in the center of the 10x8 board and you start corralling it, you're almost immediately into a situation in which, as you start pushing to an edge/corner, the rest of the mating sequence will be indistinguishable from how it would play out on the 8x8 board, as the rest of the board's real estate becomes simply irrelevant.) But as for getting an exact 10x8 answer ...</p>
  
  <p>A few years ago, I was toying around with generating tablebases for Seirawan Chess, which is played on the standard 8x8 board, but features the same extra pieces as Capablanca Chess. In the Seirawan variant, the Janus/Archbishop piece goes by the name Hawk. I just now placed into <a href="https://github.com/edean/KHK_tablebase" rel="noreferrer">a github repository</a> my old C++ source code for generating a complete KHK (or, KJK in your terminology) tablebase on the 8x8 board, along with the output files, where e.g. <code>KHK.0</code> is the set of all mate positions, and <code>KHK.34</code> is the set of all positions where it is 34 ply until black is mated. It hasn't undergone tons of testing, but this and similar ones for e.g. KEK (king-and-elephant/chancellor vs. king) appeared to function correctly and agree with known results. For instance, the max DTM of 17 moves on the 8x8 board indicated by my KHK stuff is the same value given at the <a href="http://en.wikipedia.org/wiki/Princess_%28chess%29" rel="noreferrer">wikipedia page for the Princess piece</a> (yet another name for this particular fairy chess piece).</p>
  
  <p>My code would need to changed a bit in order to adapt to your 10x8 board question. In particular, my code makes full use of the symmetries of the 8x8 board in order to reduce the number of positions needing to be examined, and of course the 10x8 board is less symmetric; so that would need an alteration. Additionally, my somewhat crude representation/storage of positions in this simple program would need to be changed and accounted for (in terms of some hard-coded arithmetic that's performed, for instance) in order to adapt to the 10x8 board. You can see the sort of thing I mean in the following snippets:</p>
  
  <pre><code>// Constants to name the symmetries of the board.
  const int sym_id = 1;
  const int sym_x = 2; // reflect across x axis
  const int sym_y = 3;
  const int sym_d1 = 4; // reflect across a1-h8 diagonal
  const int sym_d2 = 5;
  const int sym_r90 = 6; // rotate 90 degrees clockwise
  const int sym_r180 = 7;
  const int sym_r270 = 8;
  
  
  int Apply_Symmetry (int sym, int square)
  {
      // Applies the specified symmetry of the board to the specified square
      //     (in 0x88 terms).
  
      if (sym == sym_d1) {
          return (square / 16) + ((square % 16) * 16);
      }
  
      else if (sym == sym_y) {
          return ((square / 16) * 16) + (7 - (square % 16));
      }
  
      else if (sym == sym_d2) {
          return (7 - (square / 16)) + ((7 - (square % 16)) * 16);
      }
  
      else if (sym == sym_x) {
          return (square % 16) + ((7 - (square / 16)) * 16);
      }
  
      else
          return 0;
  }
  </code></pre>
  
  <p>But anyway, the structure and the functionality is there if you wanted to modify the code to produce an answer for the max DTM on the 10x8 board, and all told there's only a few hundred lines of code.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-04-12T22:36:59.937Z
Answers.LastActivityDate: 2015-04-12T22:46:08.220Z
Answers.LastEditDate: 2015-04-12T22:46:08.220Z
Answers.UserDisplayName: ETD
Body: <p>What is the maximum <a href="https://chess.stackexchange.com/q/28520/26335">Depth to Mate (DTM)</a> in the endgame king + janus vs king on a 10x8-board ?</p>
  <p>The janus can move like a bishop or like a knight. Since both sides have two
  additional pieces, the board has 10 columns and (like the chess board), 8
  rows.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-12T21:36:32.253Z
Comments.Text: Is there a name for this variant?
Comments.UserDisplayName: Cleveland
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-12T22:44:11.790Z
Comments.Text: The name should simply be "janus-chess"
Comments.UserDisplayName: Peter
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-14T04:39:59.490Z
Comments.Text: The usual name for the B+N piece is [princess](http://en.wikipedia.org/wiki/Princess_(chess)).
Comments.UserDisplayName: bof
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-27T11:20:16.267Z
Comments.Text: What's a DTM???
Comments.UserDisplayName: Tony Ennis
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-04-27T11:31:19.093Z
Comments.Text: @Tony Ennis: DTM = depth to mate (that is, number of moves to mate, perfect play being assumed).
Comments.UserDisplayName: Stephen
Tags: <endgame><checkmate><chess-variants><tablebases><unorthodox-pieces>
Title: What is the maximum DTM with K+J vs K?
ThreadText: # What is the maximum DTM with K+J vs K?
  
  (Asked by: username_0 on 2015-04-12)
  
  What is the maximum [Depth to Mate (DTM)](https://chess.stackexchange.com/q/28520/26335) in the endgame king + janus vs king on a 10x8-board ?
  
  The janus can move like a bishop or like a knight. Since both sides have two
  additional pieces, the board has 10 columns and (like the chess board), 8
  rows.
  
  **Tags:** endgame, checkmate, chess-variants, tablebases, unorthodox-pieces
  
  > **Comments:**
  > **username_1**: Is there a name for this variant?  
  > **username_0**: The name should simply be "janus-chess"  
  > **username_2**: The usual name for the B+N piece is [princess](http://en.wikipedia.org/wiki/Princess_(chess)).  
  > **username_3**: What's a DTM???  
  > **username_4**: @username_3: DTM = depth to mate (that is, number of moves to mate, perfect play being assumed).  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_5 on 2015-04-27. Score: 6
  
  I make it 21 moves, but it's quite likely that my home-made Python code (too long and messy to post here!) has mistakes, so please take this with a grain of salt. I get 112 positions which require 21 (white) moves to mate. The first one on the list is the following board, with black to play:
  
  ![White king on A1, black king on C2, white janus on h1](https://i.sstatic.net/ZSuel.png)
  
  (Janus shown as a bishop because I couldn't easily find a suitable graphic. Image created using <http://www.apronus.com/chess/wbeditor.php>)
  
  > **Comments:**
  > **username_6**: The result looks plausible to me: There are two more files compared to the 8x8 board, so the King chase is two files longes. You nedd one Janus move and one white King move for each file.  
  > **username_7**: In [this page of results](https://greenchess.net/endgame.php?type=fairy), the author calls this bishop+knight combo an archbishop. They give lengths of longest wins on the 10x8 board, and for king and archbishop and king their figure is 21 moves, agreeing with your answer.  
  
  ---
  
  ### Answer by username_8 on 2015-04-12. Score: 6
  
  I don't know the exact answer for the 10x8 board (used e.g. in Capablanca Chess, where your Janus is called the Archbishop), but I have something that could get you well along toward an exact answer, though with some effort on your part (see further below). On the 8x8 board the max DTM is 17 moves (as you may already know). My conjecture is that the 10x8 answer won't be far off from that, and I'd bet a small sum that it's no more than 19 moves. (After all, if the defending king starts in the center of the 10x8 board and you start corralling it, you're almost immediately into a situation in which, as you start pushing to an edge/corner, the rest of the mating sequence will be indistinguishable from how it would play out on the 8x8 board, as the rest of the board's real estate becomes simply irrelevant.) But as for getting an exact 10x8 answer ...
  
  A few years ago, I was toying around with generating tablebases for Seirawan Chess, which is played on the standard 8x8 board, but features the same extra pieces as Capablanca Chess. In the Seirawan variant, the Janus/Archbishop piece goes by the name Hawk. I just now placed into [a github repository](https://github.com/edean/KHK_tablebase) my old C++ source code for generating a complete KHK (or, KJK in your terminology) tablebase on the 8x8 board, along with the output files, where e.g. `KHK.0` is the set of all mate positions, and `KHK.34` is the set of all positions where it is 34 ply until black is mated. It hasn't undergone tons of testing, but this and similar ones for e.g. KEK (king-and-elephant/chancellor vs. king) appeared to function correctly and agree with known results. For instance, the max DTM of 17 moves on the 8x8 board indicated by my KHK stuff is the same value given at the [wikipedia page for the Princess piece](http://en.wikipedia.org/wiki/Princess_%28chess%29) (yet another name for this particular fairy chess piece).
  
  My code would need to changed a bit in order to adapt to your 10x8 board question. In particular, my code makes full use of the symmetries of the 8x8 board in order to reduce the number of positions needing to be examined, and of course the 10x8 board is less symmetric; so that would need an alteration. Additionally, my somewhat crude representation/storage of positions in this simple program would need to be changed and accounted for (in terms of some hard-coded arithmetic that's performed, for instance) in order to adapt to the 10x8 board. You can see the sort of thing I mean in the following snippets:
  
  ```
  // Constants to name the symmetries of the board.
  const int sym_id = 1;
  const int sym_x = 2; // reflect across x axis
  const int sym_y = 3;
  const int sym_d1 = 4; // reflect across a1-h8 diagonal
  const int sym_d2 = 5;
  const int sym_r90 = 6; // rotate 90 degrees clockwise
  const int sym_r180 = 7;
  const int sym_r270 = 8;
  
  int Apply_Symmetry (int sym, int square)
  {
      // Applies the specified symmetry of the board to the specified square
      //     (in 0x88 terms).
  
      if (sym == sym_d1) {
          return (square / 16) + ((square % 16) * 16);
      }
  
      else if (sym == sym_y) {
          return ((square / 16) * 16) + (7 - (square % 16));
      }
  
      else if (sym == sym_d2) {
          return (7 - (square / 16)) + ((7 - (square % 16)) * 16);
      }
  
      else if (sym == sym_x) {
          return (square % 16) + ((7 - (square / 16)) * 16);
      }
  
      else
          return 0;
  }
  
  ```
  
  But anyway, the structure and the functionality is there if you wanted to modify the code to produce an answer for the max DTM on the 10x8 board, and all told there's only a few hundred lines of code.
  
  
  ---
  
  