Answers.Body: <p>You're counting the same position a couple of times and not including the rule that the bishops have to be on opposite colors.  (And possible that the king must be between the rooks.)</p>
  
  <p>The actual number is 4 x 4 x (6 x 5) / 2 x 4</p>
  
  <p>4 for the LSB</p>
  
  <p>4 for the DSB</p>
  
  <p>(6 x 5) / 2 for the two knights (halved due to account for the same type of piece being placed)</p>
  
  <p>4 for the queen</p>
  
  <p>1 due to the king must be between the rooks  (Without this rule, it would be (3 x 2) / 2 or 1440.)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-10T16:29:14.697Z
Answers.LastActivityDate: 2017-09-10T16:29:14.697Z
Answers.UserDisplayName: Fred Knight
Answers.Body: <p>The bishops must be on opposite colors and the king must be between the rooks for Chess960.  Each bishop can go on one of four squares, so there are 4x4 ways.</p>
  <p>Now the queen can go on one of the six remaining squares, so the total combinations = 4x4x6.</p>
  <p>Now there are five squares for the knights, but the knights are interchangeable, so there are 5C3 = 5!/(3!*2!) = 10 ways. So that makes the total combinations = 4x4x6x10 = 960.</p>
  <p>Now there are three squares for the king and rooks, but since the king must go between the rooks, and the rooks are interchangeable, there is only one distinct way for the rooks and king, so the total number of combinations = 960.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2017-09-15T01:36:58.660Z
Answers.LastActivityDate: 2023-07-28T21:08:32.533Z
Answers.LastEditDate: 2023-07-28T21:08:32.533Z
Answers.UserDisplayName: Jud McCranie
Answers.Body: <p>We can permute 8 pieces in 8! =40320 ways.
  But we have some conditions:</p>
  <ol>
  <li>Two knights are identical.</li>
  <li>There must be opposite colour bishops.</li>
  <li>Rooks are identical.</li>
  <li>King must be between the rooks.</li>
  </ol>
  <p>Now in 8 boxes there are 4 black boxes and 4 white boxes.<br />
  We can place the black bishop in one of the 4 black boxes which can be done in 4 ways. Similarly the position of white bishop can be chosen in 4 ways.
  So there are 4×4=16 ways to choose bishop position.</p>
  <p>Now we have 6 more positions to fill.</p>
  <p>We have to fix the sequence Rook-King-Rook<br />
  To do so we only have to chose three boxes out of 6 which can be done in 6C3 =20 ways.<br />
  The other three boxes have to be filled by queen, and two knights. This can be done in 3 ways since knights are identical.<br />
  Thus we have 16×20×3=960 positions.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-12T21:35:03.097Z
Answers.LastActivityDate: 2020-09-12T21:47:48.047Z
Answers.LastEditDate: 2020-09-12T21:47:48.047Z
Answers.UserDisplayName: Newrion
Answers.Body: <p>This number is derived by using permutations (an arrangement of objects where the order they're arranged in matters).  We have a few variables:</p>
  
  <pre><code>n = how many objects there are.
  r = how many objects we are taking to arrange.
  </code></pre>
  
  <p>Both n and r equal 8 (since there are eight pieces, and we will be arranging all of them).</p>
  
  <pre><code>n = 8
  r = 8
  </code></pre>
  
  <p>The formula for Permutations:  <code>n! / (n - r)!</code></p>
  
  <p>However, we have a certain number of duplicate objects (such as 2 Knights, 2 Bishops, and 2 Rooks):</p>
  
  <pre><code># Permutations = n! / ( (n - r)!(2!)(2!)(2!) )
  
  = 8! / ( (8 - 8)!(2!)(2!)(2!) )
  
  = 8! / ( (0!)(2!)(2!)(2!) )
  
  = 8! / ( (2!)(2!)(2!) )
  
  = 40320 / 8
  
  = 5040
  </code></pre>
  
  <p>This shows that there are actually 5040 possible "Chess 960" positions.  </p>
  
  <p>However, in the game "Chess 960" there are limitations for which squares certain pieces can go on.  For example, a Bishop can only go on one of four squares.  This causes the number to go down to 960 (decreasing by a factor of exactly 42).</p>
  
  <p><a href="https://www.chess.com/forum/view/general/how-is-calculated-the-total-positions-in-chess960" rel="nofollow noreferrer">Link for more information</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-08T09:26:50.953Z
Answers.Text: How is going down from 5040 to 960 *"decreasing by a factor of exactly 42"* ?
Answers.UserDisplayName: Evargalo
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-10T06:21:10.930Z
Answers.LastActivityDate: 2017-09-10T09:12:46.687Z
Answers.LastEditDate: 2017-09-10T09:12:46.687Z
Answers.UserDisplayName: Inertial Ignorance
Body: <p>Can someone derive how do we get the total number of 960 possible positions for Chess960?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-10T13:25:41.303Z
Comments.Text: There is an explanation on the [Wikipedia page](https://en.wikipedia.org/wiki/Chess960#Starting_position_requirements) for chess 960.
Comments.UserDisplayName: bof
Tags: <chess-variants><mathematics><chess960>
Title: How to calculate the number of combinations for Chess960 positions
ThreadText: # How to calculate the number of combinations for Chess960 positions
  
  (Asked by: username_0 on 2017-09-10)
  
  Can someone derive how do we get the total number of 960 possible positions for Chess960?
  
  **Tags:** chess-variants, mathematics, chess960
  
  > **Comments:**
  > **username_1**: There is an explanation on the [Wikipedia page](https://en.wikipedia.org/wiki/Chess960#Starting_position_requirements) for chess 960.  
  
  ---
  
  ## 4 answers
  
  ### Answer by username_2 on 2017-09-10. Score: 10
  
  You're counting the same position a couple of times and not including the rule that the bishops have to be on opposite colors. (And possible that the king must be between the rooks.)
  
  The actual number is 4 x 4 x (6 x 5) / 2 x 4
  
  4 for the LSB
  
  4 for the DSB
  
  (6 x 5) / 2 for the two knights (halved due to account for the same type of piece being placed)
  
  4 for the queen
  
  1 due to the king must be between the rooks (Without this rule, it would be (3 x 2) / 2 or 1440.)
  
  
  ---
  
  ### Answer by username_3 on 2017-09-15. Score: 8
  
  The bishops must be on opposite colors and the king must be between the rooks for Chess960. Each bishop can go on one of four squares, so there are 4x4 ways.
  
  Now the queen can go on one of the six remaining squares, so the total combinations = 4x4x6.
  
  Now there are five squares for the knights, but the knights are interchangeable, so there are 5C3 = 5!/(3!\*2!) = 10 ways. So that makes the total combinations = 4x4x6x10 = 960.
  
  Now there are three squares for the king and rooks, but since the king must go between the rooks, and the rooks are interchangeable, there is only one distinct way for the rooks and king, so the total number of combinations = 960.
  
  
  ---
  
  ### Answer by username_4 on 2020-09-12. Score: 7
  
  We can permute 8 pieces in 8! =40320 ways.
  But we have some conditions:
  
  1. Two knights are identical.
  2. There must be opposite colour bishops.
  3. Rooks are identical.
  4. King must be between the rooks.
  
  Now in 8 boxes there are 4 black boxes and 4 white boxes.  
  We can place the black bishop in one of the 4 black boxes which can be done in 4 ways. Similarly the position of white bishop can be chosen in 4 ways.
  So there are 4×4=16 ways to choose bishop position.
  
  Now we have 6 more positions to fill.
  
  We have to fix the sequence Rook-King-Rook  
  To do so we only have to chose three boxes out of 6 which can be done in 6C3 =20 ways.  
  The other three boxes have to be filled by queen, and two knights. This can be done in 3 ways since knights are identical.  
  Thus we have 16×20×3=960 positions.
  
  
  ---
  
  ### Answer by username_5 on 2017-09-10. Score: 5
  
  This number is derived by using permutations (an arrangement of objects where the order they're arranged in matters). We have a few variables:
  
  ```
  n = how many objects there are.
  r = how many objects we are taking to arrange.
  
  ```
  
  Both n and r equal 8 (since there are eight pieces, and we will be arranging all of them).
  
  ```
  n = 8
  r = 8
  
  ```
  
  The formula for Permutations: `n! / (n - r)!`
  
  However, we have a certain number of duplicate objects (such as 2 Knights, 2 Bishops, and 2 Rooks):
  
  ```
  # Permutations = n! / ( (n - r)!(2!)(2!)(2!) )
  
  = 8! / ( (8 - 8)!(2!)(2!)(2!) )
  
  = 8! / ( (0!)(2!)(2!)(2!) )
  
  = 8! / ( (2!)(2!)(2!) )
  
  = 40320 / 8
  
  = 5040
  
  ```
  
  This shows that there are actually 5040 possible "Chess 960" positions.
  
  However, in the game "Chess 960" there are limitations for which squares certain pieces can go on. For example, a Bishop can only go on one of four squares. This causes the number to go down to 960 (decreasing by a factor of exactly 42).
  
  [Link for more information](https://www.chess.com/forum/view/general/how-is-calculated-the-total-positions-in-chess960)
  
  > **Comments:**
  > **username_6**: How is going down from 5040 to 960 *"decreasing by a factor of exactly 42"* ?  
  
  ---
  
  