Anyone Can Write Code with AI: "Make Me A Pong Clone"
This goes to show that with the help of an LLM, anyone can code. I’ve built lots of financial models and databases during my career, but have not written code. Here is how I leveraged OpenAI to create a clone of the 1972 video game “Pong”.
My OpenAI prompt: “make me a ‘Pong” clone”
(pong was an early video game that was created in 1972.)
OpenAI response 1: “Create an HTML File: You need an HTML file to include the JavaScript and display the game. Create a new file called index.html and add the following code:”
OpenAI response 2: “Here's a simple Pong clone in JavaScript using the <canvas> element. It includes basic paddle controls (W/S for left paddle, Arrow Up/Down for right paddle) and ball movement. Let me know if you want to add features like scoring or AI!” (JS below).
OpenAI response 3: “Open index.html in a web browser (Chrome, Firefox, Edge, etc.). The game should start running immediately.” The game did start running immediately. I did not write any code. I simply copied and pasted code that OpenAI wrote. Here is a video of the Pong clone. I did not move the paddles as I was busy recording the screen:



