How computers play chess
A chess program consists of 3 parts:a.) Move generator: Generates all possible moves in a given positionb.) Search function: Looks at all possible moves and replies and try to find the best continuation.c.) Position evaluator. Gives a score to a position. It consists of a material score (pawn=100; knight=300 etc.) and a positional score (safe king=20; pawn in center=10; …