Tag: Chess programming
-
Chess programming and basic chess principles: Episode 3 – Interconnecting pieces
When programming a chess engine, one of the main things one should take into account is to find a way to create solid positions that are safe for the computer, even without the computer “consciously” knowing it. After every move, the position should be solidified in every possible way so that even if the algorithm…
-
How to develop a chess program from scratch (for total beginners) Ep. 5: Check Legality of Moves
[Previous episode] Overview A chess program is nothing without a function that checks the validity of moves. This function allows the program to play legal moves and without it, nothing would be possible. In this chapter we will analyze this function. The computer utilizes this function at two points: This can be illustrated better in…
-
Chess programming and basic chess principles: Episode 2 – Double attack
Double attack is the single most important thing a computer (or a human) should search for when thinking for a game of chess. Why is that? Well, simply put, there is no other way to win material other than the double attack! If you threat one piece of the opponent then the opponent can simply…