This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

JavaForever
JavaForever presents ...

2011/3/22

Pong-AI (KI)

This is a pong - game, where the AI (KI) calculate the impact from the rival and the ball.

Control with the left and right arrow.
You win or lose if you have 7 goals.

5594 views / 19 in the last 7 days

Tags: mouse game simulation with-source ai pong ki

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Sat Mar 26 20:50:04 UTC 2011 Now I've made a counter which count the goals of the rival and the player.
A new version of this scenario was uploaded on Sat Mar 26 21:57:28 UTC 2011
chanduuchanduu

2011/3/26

Very Good!! My suggestion is to use up and down arrow instead of left and right arrow.
delmardelmar

2011/3/26

Works well. Now I need a way to win!
A new version of this scenario was uploaded on Sun Mar 27 10:29:18 UTC 2011 + you win, if you make 7 goals
A new version of this scenario was uploaded on Sun Mar 27 11:01:18 UTC 2011
A new version of this scenario was uploaded on Sun Mar 27 14:12:54 UTC 2011 + re-start with a simple click + funny colors
EPICxFAIL-_EPICxFAIL-_

2013/4/19

Can you post the coding for me? I was trying to make an AI on one of the characters in a game and couldn't figure it out.
A new version of this scenario was uploaded on 2019-03-05 23:17:07 UTC Update for new Greenfoot version; Publish source code just in case someone is interested. Since this project is pretty old and I don't have the time to clean up the code it's a little messy at the moment.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.