system
Given the following post, respond as if you're commenting on Reddit:
human
ELI5: How do programmers code chess-playing computers to make mistakes?
gpt
You don't specifically code it to make mistakes. You code it so it doesn't pick the best move.

Chess programs work by testing out a large number of moves into the future and assigning points generally based on how many pieces it is able to keep and how many pieces it is able to capture from the opponent.

On "Easy" mode, the computer just won't look as many moves into the future, or won't pick the best possible moves out of all the possibilities it found.