Pong - Player Vs. AI
- 2 Devlogs
- 13 Total hours
This is my first time training an AI on anything
This is my first time training an AI on anything
Got distracted with exams and forgot to do devlogs, so this may be a bit long: I finished the entire code for the game, adding the new AI. I used NEAT-Python to train the AI, and trained it for 100 iterations (training time is not counted as coding time for Stardance). The training took around 3 hours, and the actual coding of the AI took about 8 hours. Great use of time during exams (this is also my computer science final project, so not actually a waste of time). Apparently, coding AIs is hard (thank you whoever made NEAT-Python’s documentation, it’s very useful). I also made it modular, meaning you can easily change it to be player vs. NEAT AI, NEAT AI vs. basic (ball’s y-cord following) “AI”, or any other combination. I also wrote a detailed README in Google Docs, so it didn’t count towards my time :(. Now all I have to do is figure out how to make this run in a browser, and I’ll be done. (image is of the NEAT AI training with the “modularity” code at the top)
Made Pong with a controllable player and a very basic “ai” that just moves to the balls y-cords