Jump to content
  • Advertisement
Sign in to follow this  
  • entries
  • comments
  • views

The AI of Power Pong - Learning over time

Sign in to follow this  


Welcome back!

In this entry I will be discussing the AI of Power Pong. A decision was made early on as to how the AI would work. Would it cheat? Would it be an instant professional? No to both. Instead, I opted to draft a more adaptable AI approach.

The AI has a few rules to consider when decision making

- Where is the ball heading?

- How much do I need to move?

- Do I need to use my skills?

- How good is my opponent?

With these rules in mind, the AI will begin (depending on the difficulty set), rather jittery, as it does not know how far to move in order to successfully deflect the ball. Furthermore it never cheats, it does not know ahead of time where the ball will land. It will only attempt to keep up with where the ball is going and make decisions based on that.

If the AI is losing too much, it will slowly start to adjust. It will start to alter its movements over time, becoming more and more accurate at deflecting the ball. The AI is not perfect, and there will always be a chance for it to miss, now matter how much it's mastered the game.

If its opponent is losing, however, there is a small adjustment that affects its learning rate, as to not exponentially increase the difficulty into the AI's favour.

Hopefully this new approach brings a more exciting gameplay experience, allowing for a more realistic AI to battle against.

The next post will discuss the mechanics of the game in more detail!

Sign in to follow this  


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!