![]() ![]() It is important to find a convenient and memory-efficient board representation, because during the optimal move search thousands of boards would be kept in memory.Ī board is typically represented as an array of squares. You may find the full code of the engine at (the name comes from latin species name of Gopher rockfish). The code snippets in this post are simplified and contain only most important parts of code. How to perform a search for the optimal move.How to evaluate the board (who is likely to win). ![]() How to represent the chess board (squares, pieces, valid moves).To build a chess engine one has to decide on three important topics: Go is also known as a simple and highly readable language, so I hope the two of them could make a great couple. Sunfish is notable for its simplicity and small size, while still being capable of playing decent chess. In this article we will try to understand how chess engines work by porting the sunfish chess engine to Go.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |