Skip to content

pastachilli/Pong-w-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong-w-AI

This is a basic pong game that includes 2 basic artificial intelligences.

*The Dumb AI matches its paddle to the y coordinate of the ball, which is good in the beginning, but as the ball speeds up, this method becomes less efficient.

*The Smart AI calculates the point that the ball will hit its side at by predicting the balls movement path and then saving the final y coordinate of the ball.

*Coded in JavaScript through the P5 Editor. P5 can be found at www.p5js.org.

*You can test a demo at this link: https://editor.p5js.org/Pastachilli/present/efSI_H611

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published