AI is a big problem, because it's really easy to write shitty AI and very difficult and time-consuming to write a good one.
There are also special techniques and methods of programming an AI. For example, in chess there's a method which evaluates positions and generates and new position to evaluate after every move, and tries to make the move leading to the most profitable position. I like to use randomly behaving AI, it adds plenty of variation and makes it more interesting.
kkots
AI is a big problem, because it's really easy to write shitty AI and very difficult and time-consuming to write a good one.
There are also special techniques and methods of programming an AI. For example, in chess there's a method which evaluates positions and generates and new position to evaluate after every move, and tries to make the move leading to the most profitable position. I like to use randomly behaving AI, it adds plenty of variation and makes it more interesting.