A computer game lets the user play a board game (such as chess) against the computer. Describe how the computer would use Artificial Intelligence (AI) to play the board game.
Points that gain marks
- The rules of the game and past moves are stored.
- It looks ahead at the possible moves and chooses the move most likely to win.
- It can be trained by playing many games.
- It learns from its mistakes: it stores whether each choice led to a good or bad result and changes its future choices.
In this lab: Minimax is the looking ahead: the computer scores every possible game to the end and picks the move that is best even if the other player plays well. The matchbox lab shows the other point: learning from good and bad results.