Your guess is partially correct. Weak AIs are often created by adding randomness or noise to the evaluation function used by a strong AI. This can be done to simulate human-like mistakes and create a more challenging opponent for humans.
However, simply adding random noise to the evaluation function is not the only way to create a weak AI. There are several other techniques that can be used to create AIs that play more human-like, such as:
- Using a different evaluation function: Instead of using a single evaluation function that rates moves based on their objective strength, a weak AI can use a different function that takes into account other factors, such as the complexity of the position, the potential for blunders, or the style of play.
- Incorporating heuristics: Heuristics are general rules or guidelines that humans use to guide their decision-making. A weak AI can be designed to incorporate heuristics that are based on human experience and intuition, rather than purely objective criteria.
- Using machine learning: Machine learning algorithms can be trained on human games to learn patterns and strategies that are typical of human play. A weak AI can be created by using a machine learning model that is trained on a dataset of human games, and then using that model to generate moves that are similar to those played by humans.
- Introducing randomness: In addition to adding noise to the evaluation function, randomness can be introduced in other ways, such as by randomly selecting moves from a set of viable options, or by introducing random delays or errors in the decision-making process.
To create weak AIs whose moves are natural for humans, it's important to understand how humans play and make decisions. This can be done by analyzing human games, conducting experiments to study human decision-making, and incorporating insights from cognitive psychology and neuroscience.
Ultimately, creating a weak AI that plays like a human is a complex task that requires a deep understanding of human cognition and behavior, as well as advanced technical skills in AI development.