Answers.Body: <p>OK, let's break it down piece by piece, first calculating without check/checkmate and then with.</p>
  <p><strong>Pawns</strong></p>
  <p>Each pawn has 6 non-capturing non-promoting moves, and can promote to 4 different pieces. The rook pawns have, including en passant, 6 non-promotion captures and 4 promotion captures. The non-rook pawns have double the captures. This gives us 20 moves per rook pawn and 30 per non-rook pawn. There are 4 rook pawns and 12 non-rook pawns. 4 times 20 is 80, 12 times 30 is 360, added together is 440.</p>
  <p>Every pawn move, including en passant and promotions, could be a check or checkmate. So triple that. 440 times 3 equals 1320 total pawn moves.</p>
  <p><strong>Knights</strong></p>
  <p>There are 16 squares a knight can move from which give it 8 places to go, 16 squares where it has 6 places to go, 20 squares where it has 4 places to go, 8 squares where it has 3 places to go, and 4 squares where it has 2 places to go. So that's 128 + 96 + 80 + 24 + 8 = 336.</p>
  <p>There is no particular reason why a knight move couldn't be check or checkmate, and no particular reason why it couldn't be a capture, so multiply this by 6. 336 times 6 is 2016 total knight moves.</p>
  <p><strong>Bishops</strong></p>
  <p>From the center 4 squares, a bishop has 13 moves. From the 12 squares ringing the center, a bishop has 11 moves. From the 20 squares ringing <em>those</em> squares, a bishop has 9 moves, and from the 28 squares at the edge of the board, a bishop has 7 moves. So that's 52 + 132 + 180 + 196 = 560 bishop moves.</p>
  <p>As warned in the question, some bishop moves cannot be check or checkmate. These would be the moves where the bishop cannot uncover another piece and does not control any new squares itself. Those moves turn out to be only the moves from one corner to another, of which there are 4. So, subtract those 4 before multiplying, 556 times 3 is 1668, add back those 4, and get 1672. Any of those could also be a capture, so 1672 times 2 = 3344 total bishop moves.</p>
  <p><strong>Rooks</strong></p>
  <p>Rooks are easy. Each rook has 14 moves from any spot on the board. 14 times 64 is 896.</p>
  <p>Any of these moves could be a check or checkmate, and any of those could also be a capture, so 896 times 6 is 5376 total rook moves.</p>
  <p><strong>Queens</strong></p>
  <p>Queens can do any move the rook or bishop can do. 560 bishop moves plus 896 rook moves equals 1456.</p>
  <p>Queens can give check on those corner to corner moves where the bishop can't, so all of these moves could be check or checkmate. And any of those moves could also be a capture. So we can simply multiply this by 6 and get 8736 total queen moves.</p>
  <p><strong>Kings</strong></p>
  <p>There are 36 squares where a king has 8 possible moves, 24 edge squares where it has 5 possible moves, and 4 corner squares where it has 3 possible moves. There are also 2 castling moves, which are classified as king moves. (I assume White castling and Black castling count as the same move since they use the same notation, even though the pieces move to different squares.) 288 + 120 + 12 + 2 = 422.</p>
  <p>Kings can never give check directly; they can only give check if uncovering another piece - or by castling, where the rook can give check. The only way they can't uncover a piece is if they move from the corner (12 moves) or non-diagonally from an edge square to an edge or corner (48 moves). So subtract 60, 362 times 3 is 1086, add the 60 back, to get 1146. All of these except castling could also be captures. So there are 2286 total king moves.</p>
  <p><strong>Sanity check</strong></p>
  <p>Let's make sure these numbers make sense in relation to each other.</p>
  <p>There are more queen moves than anything else, rook moves are second, bishops are third, kings are fourth, knights are fifth, and pawns are last, which makes intuitive sense.</p>
  <p><strong>Total</strong></p>
  <p>Now we can add it all up. 1320 + 2016 + 3344 + 5376 + 8736 + 2286 = <strong>23,078</strong> total moves.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-27T16:04:42.327Z
Answers.Text: Nice job. I am glad someone did it before I even started spending time on it !
Answers.UserDisplayName: Evargalo
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-27T03:58:44.653Z
Answers.LastActivityDate: 2024-02-27T04:12:18.783Z
Answers.LastEditDate: 2024-02-27T04:12:18.783Z
Answers.UserDisplayName: D M
Body: <p>A move here shall be defined as the FIDE super-long notation of a legal chess move: Sg1-f3, O-O, e5xd6 ep, Da8xg8+, Rd1-d6# and whatnot. I.e. starting square, ending square, capture sign, check sign, mate sign, ep (all if applies), castling. (Stalemate is usually not notated.) How many moves are possible? Danger, counting pitfalls: Bh1-a8 is never a check!</p>
  <p>(I think this question might have been addressed in a problem chess journal already.)</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-01T02:03:48.320Z
Comments.Text: Is there any move other than a corner-to-corner B-move that can never be check or mate?
Comments.UserDisplayName: Noam D. Elkies
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-01T09:19:58.337Z
Comments.Text: Obviously any king move along the border, and from the corner to anywhere.
Comments.UserDisplayName: Hauke Reddmann
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-01T14:51:42.717Z
Comments.Text: The super-long notation does still not give enough information to allow the move to be reversed. Would also need to know what kind of unit is captured if anything
Comments.UserDisplayName: Laska
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-02T08:24:17.297Z
Comments.Text: @Laska: True, but OTB we don't play retro :-) (One *could* ask for every uniquely defined move instead like you suggest - arguably the better version -, but I went for the FIDE version, for no particular reason.)
Comments.UserDisplayName: Hauke Reddmann
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-27T06:52:04.233Z
Comments.Text: There is no special notation for a double check?
Comments.UserDisplayName: bof
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-02-27T07:16:14.037Z
Comments.Text: @bof: In old books there is: ++.
Comments.UserDisplayName: Hauke Reddmann
Tags: <puzzles><mathematics><annotation>
Title: "Every" move in long notation
ThreadText: # "Every" move in long notation
  
  (Asked by: username_0 on 2024-01-31)
  
  A move here shall be defined as the FIDE super-long notation of a legal chess move: Sg1-f3, O-O, e5xd6 ep, Da8xg8+, Rd1-d6# and whatnot. I.e. starting square, ending square, capture sign, check sign, mate sign, ep (all if applies), castling. (Stalemate is usually not notated.) How many moves are possible? Danger, counting pitfalls: Bh1-a8 is never a check!
  
  (I think this question might have been addressed in a problem chess journal already.)
  
  **Tags:** puzzles, mathematics, annotation
  
  > **Comments:**
  > **username_1**: Is there any move other than a corner-to-corner B-move that can never be check or mate?  
  > **username_0**: Obviously any king move along the border, and from the corner to anywhere.  
  > **username_2**: The super-long notation does still not give enough information to allow the move to be reversed. Would also need to know what kind of unit is captured if anything  
  > **username_0**: @username_2: True, but OTB we don't play retro :-) (One *could* ask for every uniquely defined move instead like you suggest - arguably the better version -, but I went for the FIDE version, for no particular reason.)  
  > **username_3**: There is no special notation for a double check?  
  > **username_0**: @username_3: In old books there is: ++.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_4 on 2024-02-27. Score: 2
  
  OK, let's break it down piece by piece, first calculating without check/checkmate and then with.
  
  **Pawns**
  
  Each pawn has 6 non-capturing non-promoting moves, and can promote to 4 different pieces. The rook pawns have, including en passant, 6 non-promotion captures and 4 promotion captures. The non-rook pawns have double the captures. This gives us 20 moves per rook pawn and 30 per non-rook pawn. There are 4 rook pawns and 12 non-rook pawns. 4 times 20 is 80, 12 times 30 is 360, added together is 440.
  
  Every pawn move, including en passant and promotions, could be a check or checkmate. So triple that. 440 times 3 equals 1320 total pawn moves.
  
  **Knights**
  
  There are 16 squares a knight can move from which give it 8 places to go, 16 squares where it has 6 places to go, 20 squares where it has 4 places to go, 8 squares where it has 3 places to go, and 4 squares where it has 2 places to go. So that's 128 + 96 + 80 + 24 + 8 = 336.
  
  There is no particular reason why a knight move couldn't be check or checkmate, and no particular reason why it couldn't be a capture, so multiply this by 6. 336 times 6 is 2016 total knight moves.
  
  **Bishops**
  
  From the center 4 squares, a bishop has 13 moves. From the 12 squares ringing the center, a bishop has 11 moves. From the 20 squares ringing *those* squares, a bishop has 9 moves, and from the 28 squares at the edge of the board, a bishop has 7 moves. So that's 52 + 132 + 180 + 196 = 560 bishop moves.
  
  As warned in the question, some bishop moves cannot be check or checkmate. These would be the moves where the bishop cannot uncover another piece and does not control any new squares itself. Those moves turn out to be only the moves from one corner to another, of which there are 4. So, subtract those 4 before multiplying, 556 times 3 is 1668, add back those 4, and get 1672. Any of those could also be a capture, so 1672 times 2 = 3344 total bishop moves.
  
  **Rooks**
  
  Rooks are easy. Each rook has 14 moves from any spot on the board. 14 times 64 is 896.
  
  Any of these moves could be a check or checkmate, and any of those could also be a capture, so 896 times 6 is 5376 total rook moves.
  
  **Queens**
  
  Queens can do any move the rook or bishop can do. 560 bishop moves plus 896 rook moves equals 1456.
  
  Queens can give check on those corner to corner moves where the bishop can't, so all of these moves could be check or checkmate. And any of those moves could also be a capture. So we can simply multiply this by 6 and get 8736 total queen moves.
  
  **Kings**
  
  There are 36 squares where a king has 8 possible moves, 24 edge squares where it has 5 possible moves, and 4 corner squares where it has 3 possible moves. There are also 2 castling moves, which are classified as king moves. (I assume White castling and Black castling count as the same move since they use the same notation, even though the pieces move to different squares.) 288 + 120 + 12 + 2 = 422.
  
  Kings can never give check directly; they can only give check if uncovering another piece - or by castling, where the rook can give check. The only way they can't uncover a piece is if they move from the corner (12 moves) or non-diagonally from an edge square to an edge or corner (48 moves). So subtract 60, 362 times 3 is 1086, add the 60 back, to get 1146. All of these except castling could also be captures. So there are 2286 total king moves.
  
  **Sanity check**
  
  Let's make sure these numbers make sense in relation to each other.
  
  There are more queen moves than anything else, rook moves are second, bishops are third, kings are fourth, knights are fifth, and pawns are last, which makes intuitive sense.
  
  **Total**
  
  Now we can add it all up. 1320 + 2016 + 3344 + 5376 + 8736 + 2286 = **23,078** total moves.
  
  > **Comments:**
  > **username_5**: Nice job. I am glad someone did it before I even started spending time on it !  
  
  ---
  
  