Answers.Body: <p>To my knowledge there is no book on chess engine programming because there is no market.</p>
  <p>People study the source code simply by reading it. If you have any question, please join Stockfish/LC0 discord. It worked well for me, I just ask online anything I don't understand.</p>
  <p>I would suggest the following on learning. Many more I may have missed.</p>
  <ul>
  <li><a href="https://www.chessprogramming.org/Main_Page" rel="noreferrer">https://www.chessprogramming.org/Main_Page</a></li>
  <li><a href="https://www.talkchess.com" rel="noreferrer">https://www.talkchess.com</a></li>
  <li><a href="https://lib.vsu.by/jspui/handle/123456789/20821" rel="noreferrer">https://lib.vsu.by/jspui/handle/123456789/20821</a> (Deep learning for chess ai)</li>
  <li>Stockfish/LC0 discoards</li>
  <li><a href="https://groups.google.com/forum/#!forum/fishcooking" rel="noreferrer">https://groups.google.com/forum/#!forum/fishcooking</a></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-30T18:19:17.117Z
Answers.Text: Actually, CPW lists a whole page on books about chess engines.
Answers.UserDisplayName: qwr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-23T21:51:08.270Z
Answers.LastActivityDate: 2020-09-23T22:05:13.100Z
Answers.LastEditDate: 2020-09-23T22:05:13.100Z
Answers.UserDisplayName: SmallChess
Answers.Body: <p>FM Bill Jordan has written several, including:</p>
  <ul>
  <li><a href="https://rads.stackoverflow.com/amzn/click/com/1696444446" rel="nofollow noreferrer" rel="nofollow noreferrer">How to Write a Chess Engine</a></li>
  <li><a href="https://rads.stackoverflow.com/amzn/click/com/1707113025" rel="nofollow noreferrer" rel="nofollow noreferrer">The Joy of Chess Programming: How Chess Engines Work</a></li>
  <li><a href="https://rads.stackoverflow.com/amzn/click/com/B08BDZ2K8B" rel="nofollow noreferrer" rel="nofollow noreferrer">How to Write a Bitboard Chess Engine: How Chess Engines Work</a></li>
  </ul>
  <p>The first is basically a printout of his engine's code, with an explanation of each code segment.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-30T22:19:52.343Z
Answers.Text: He also has a book on a javascript-based engine.
Answers.UserDisplayName: qwr
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-09-24T16:39:38.163Z
Answers.LastActivityDate: 2020-09-24T16:39:38.163Z
Answers.UserDisplayName: Herb
Answers.Body: <p>Chess Programming Wiki (CPW) is a fantastic online resource and has a <a href="https://www.chessprogramming.org/Recommended_Reading" rel="nofollow noreferrer">recommended reading list</a>. It will give you more breadth of information than any book, at the risk of not laying things out in a consistent manner like a book.</p>
  <p>A good gentle introduction to chess engines in general is the 6-part series by François-Dominic Laramée (2000) listed in the <a href="https://www.chessprogramming.org/Recommended_Reading#Online_Resources" rel="nofollow noreferrer">online resources links</a>.</p>
  <p>Neural networks are still new and there aren't many long-form explanations on them yet. The only one I could find is <em>Neural Networks For Chess: The magic of deep and reinforcement learning revealed</em> by Dominik Klein. I have not read it.</p>
  <p>Your best bet to understand Stockfish is to read the <a href="https://www.chessprogramming.org/Stockfish" rel="nofollow noreferrer">CPW article on Stockfish</a> and <a href="https://www.chessprogramming.org/NNUE" rel="nofollow noreferrer">NNUE</a>. Also refer to the original AlphaGo papers. You should have some basic familiarity with what <a href="https://www.chessprogramming.org/Evaluation" rel="nofollow noreferrer">evaluation</a> is and also the principles of a neural network (backpropagation).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-01-08T16:13:39.333Z
Answers.Text: note that the book you mentioned ("Neural Networks for Chess: The magic of deep and reinforcemet learning revelaed") is apparently freely available at https://github.com/asdfjkl/neural_network_chess . There is also code, which I did not check
Answers.UserDisplayName: ndbd
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-30T22:13:17.843Z
Answers.LastActivityDate: 2022-07-30T22:13:17.843Z
Answers.UserDisplayName: qwr
Body: <p>This might be too broad a question, but can anyone recommend specific books that deal with chess engines, including hard-coded ones such as Stockfish, Komodo, and other ones also based on neural networks and reinforcement learning? I want to get a broad overview of the logic behind chess engines, and maybe experiment in building one myself. For starters, is there anywhere I can refer to understand the Stockfish source code for example, and Alpha Zero respectively?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-09-24T18:07:40.793Z
Comments.Text: The book "Deep Learning and the Game of Go" by Pumperla and Ferguson could help. The core deep-learning approach can be applied to just about any game.
Comments.UserDisplayName: John Coleman
Tags: <engines><stockfish><books><alphazero>
Title: Book recommendation for chess engine building
ThreadText: # Book recommendation for chess engine building
  
  (Asked by: username_0 on 2020-09-22)
  
  This might be too broad a question, but can anyone recommend specific books that deal with chess engines, including hard-coded ones such as Stockfish, Komodo, and other ones also based on neural networks and reinforcement learning? I want to get a broad overview of the logic behind chess engines, and maybe experiment in building one myself. For starters, is there anywhere I can refer to understand the Stockfish source code for example, and Alpha Zero respectively?
  
  **Tags:** engines, stockfish, books, alphazero
  
  > **Comments:**
  > **username_1**: The book "Deep Learning and the Game of Go" by Pumperla and Ferguson could help. The core deep-learning approach can be applied to just about any game.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_2 on 2020-09-23. Score: 5 | Accepted answer
  
  To my knowledge there is no book on chess engine programming because there is no market.
  
  People study the source code simply by reading it. If you have any question, please join Stockfish/LC0 discord. It worked well for me, I just ask online anything I don't understand.
  
  I would suggest the following on learning. Many more I may have missed.
  
  * <https://www.chessprogramming.org/Main_Page>
  * <https://www.talkchess.com>
  * <https://lib.vsu.by/jspui/handle/123456789/20821> (Deep learning for chess ai)
  * Stockfish/LC0 discoards
  * <https://groups.google.com/forum/#!forum/fishcooking>
  
  > **Comments:**
  > **username_3**: Actually, CPW lists a whole page on books about chess engines.  
  
  ---
  
  ### Answer by username_4 on 2020-09-24. Score: 4
  
  FM Bill Jordan has written several, including:
  
  * [How to Write a Chess Engine](https://rads.stackoverflow.com/amzn/click/com/1696444446)
  * [The Joy of Chess Programming: How Chess Engines Work](https://rads.stackoverflow.com/amzn/click/com/1707113025)
  * [How to Write a Bitboard Chess Engine: How Chess Engines Work](https://rads.stackoverflow.com/amzn/click/com/B08BDZ2K8B)
  
  The first is basically a printout of his engine's code, with an explanation of each code segment.
  
  > **Comments:**
  > **username_3**: He also has a book on a javascript-based engine.  
  
  ---
  
  ### Answer by username_3 on 2022-07-30. Score: 1
  
  Chess Programming Wiki (CPW) is a fantastic online resource and has a [recommended reading list](https://www.chessprogramming.org/Recommended_Reading). It will give you more breadth of information than any book, at the risk of not laying things out in a consistent manner like a book.
  
  A good gentle introduction to chess engines in general is the 6-part series by François-Dominic Laramée (2000) listed in the [online resources links](https://www.chessprogramming.org/Recommended_Reading#Online_Resources).
  
  Neural networks are still new and there aren't many long-form explanations on them yet. The only one I could find is *Neural Networks For Chess: The magic of deep and reinforcement learning revealed* by Dominik Klein. I have not read it.
  
  Your best bet to understand Stockfish is to read the [CPW article on Stockfish](https://www.chessprogramming.org/Stockfish) and [NNUE](https://www.chessprogramming.org/NNUE). Also refer to the original AlphaGo papers. You should have some basic familiarity with what [evaluation](https://www.chessprogramming.org/Evaluation) is and also the principles of a neural network (backpropagation).
  
  > **Comments:**
  > **username_5**: note that the book you mentioned ("Neural Networks for Chess: The magic of deep and reinforcemet learning revelaed") is apparently freely available at https://github.com/asdfjkl/neural_network_chess . There is also code, which I did not check  
  
  ---
  
  