How can you program a videogame bot that is just good enough as your opponent?

423 views

I’m playing Rocket League and thinking how can the bots not kick your ass everytime they’re there, while at the same time not be completely lame.

In: 6

3 Answers

Anonymous 0 Comments

The most common method is to use the strengths of computers (target recognition, reaction time, angle computation, etc.), and then apply a bit of randomness or latency to the decisions or results. Doing it this way, you can amplify the handicap based on the difficulty settings (if the game has them).

A better method is to monitor how well the player or players are doing, and then adjust the accuracy on the fly to keep them barely winning. A simple example would be racing games. Once you teach the AI to successfully navigate the track, it is easy to tweak the controls or the car’s properties so that the AI can stay right on the player’s tail, and occasionally pass them to keep it exciting.

You are viewing 1 out of 3 answers, click here to view all answers.