ScratchData LogoScratchData
Back to gtoal's profile

Pong! A.I. Battle - follower vs predictor

GTgtoal•Created March 13, 2015
Pong! A.I. Battle - follower vs predictor
17
8
317 views
View on Scratch

Instructions

My plan is to make this a competition between two bots - a 'follower' and a 'predictor'. The follower just tries to match the y coordinate of the ball; the predictor tries to move to where it thinks the ball will be returned to. For now, these are both followers.

Description

Original project was completely rewritten. Still to do - add spin (hitting while moving the paddles) or modify the bounce angle depending on where on the paddle it hits. This will add some unpredictability to the game and make it harder for the predictor A.I. PS 98% pen. 1% is a trick to leave the phosphor trails and the other 1% is a neat trick from @FrozenFIsh13 to simulate an old analog raster display... (although it has made it a little laggy :-( ) Currently trying the alternative CRT effect from Apollos by @fezzinate

Project Details

Project ID52326054
CreatedMarch 13, 2015
Last ModifiedMarch 22, 2015
SharedMarch 17, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root