I've never coded before, but I'm really interested in creating a Pong game where two AI players can compete against each other indefinitely. I'd like the option to play too, but I'm looking for the game to run autonomously for the most part. I'm curious about where to start with this project and what kind of computer setup I might need to make it work. Any suggestions?
4 Answers
I whipped up a simple HTML/JavaScript version of Pong for you. It's not the best code, but it has all the essentials you'll need to get started. You just need to paste the code into a text editor and save it as an '.html' file. After that, you can look up the different commands to see how it works or modify it as you like! Here's the code: [https://pastebin.com/G91M5QSw](https://pastebin.com/G91M5QSw)
You can create this Pong game using any programming language! A great approach would be to build it as a web app. Check out MDN's web development tutorials to start from scratch. Once you're comfortable with the basics, dive into their game development guides, which could be super helpful for your project!
Sounds like a fun project, dude!
Awesome idea! If you're thinking of building this yourself, you should decide what type of app you want. A web app would allow anyone to access your Pong game through a browser. There are some limitations, like needing user permission for sound or fullscreen, but it’s doable! If you prefer a desktop application for Windows or Mac, that’s also an option. If you're unsure, I'd recommend starting with Python and using the Pygame library; it’s beginner-friendly! You'll probably need a couple of months of practice before you can tackle your game, but that's totally achievable!
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically