Ai vs Ai or Player vs Ai Python pong game
This is an advanced implementation of 2 convolutional neural networks that compete in a game of pong using pygame. Can be changed to 1 player vs Ai. Both networks evolve over time to be able to effectively play pong.
Simply launch the code (install all modules needed)
pygame==2.0.1
numpy==1.21.0
tensorflow==2.5.0
Upon first run, the program will create a player 1 & 2 model. Each successive game, these models will be updated and saved in the script directory. Models will continuously update and gameplay will gradually improve over time (approx. 250-400 games for modest improvements, while 1000+ games will yield significant improvements per model)
License type: "Own use only (no end product)".
Read more.
Reviews
Nobody has rated this offer yet.