Pong

An AI classic

Having completed a couple of online Udemy courses on AI, I wanted to put my new skills to the test.

For the first time, I decided to write a full program entirely with AI. I decided to recreate the classic arcade game, Pong.

Thanks to my recent education in AI, I was quickly able to identify two suitable AI tools to help me complete this task: ChatGPT and Cursor AI.

By asking ChatGPT what kind of game I wanted to make, and the technologies required to construct such a project (HTML, CSS and JavaScript), it provided me with a detailed plan of action, as well as a template file structure.

I followed these steps, using my own human intuition where necessary, and built a Pong game that worked first time. However, it was very basic, lacking even a proper scoring system.

With the help of Cursor AI and its editor, I made my own additions and modifications to improve the simple Pong game, adding features such as customisable visuals, an intelligent CPU opponent, and making the game start with its own menu.

The whole process of building my game was a lot quicker and easier, thanks to Cursor's autocompletion and code suggestions. Being able to use the Chat feature to explain parts of the template I didn't understand ensured I was always on the right path, with minimal time wasted.

So, to conclude, with the help of ChatGPT I was able to quickly produce a simple working application that met my requirements. With Cursor AI, I was easily able to implement more advanced features, transforming it into a proper game. And it was only possible thanks to my own intuition, and knowledge of which tools to use for the job.