Pong is a ball game with the purpose of not touching the walls along the x axis. Two paddles are present and two player battle to win. Both single and multiplayer options are available.
I used Python 3.9 because it is easy-to-use. It delivers my purpose through straight forward lines of code. I also used an IDE, PyCharm. This is because it has a great project management system and is friendly to beginners (like me)! Besides Python, I used a module called Turtle (Turtle Graphics), which allowed me to make the game with a game engine.
I faced many challenges. The scoring system was quite confusing and complicated. Besides, I often confuse variables and loops. This caused many errors which I later fixed during the vigorous testing phase. It took a lot of time and debugging. However, I notice that there are still some bugs, so please open an issue if you find them.
- Description
- What does the application do?
- What technologies did I use?
- What challenges did I face?
- Installation
- Is there any installation process?
- Using the project
- How to use the project?
- Contribution
- How can you contribute to the project?
- Are there any requirements for contributors?
- What are the rules for contributing?
- Project Features
- How many game modes are there?
- Can you cheat?
- To-Do List
- Credits
- Who helped?
- What tutorials did I use?
- Copyright License
No, this is because this game is NOT a software or an app. This game is simply a raw piece of Python code. However, you may need a special program to run Python. For long term use, I would recommend PyCharm. If you just want to run this code without going through the faffle of installing IDE software apps, I recommend replit on a web browser. Here are some links:
- Computer Program: PyCharm
- Computer Program: Sublime Text
- Computer Program: Microsoft Visual Studio Code
- Web Browser: Replit.com **Remember, this is a free browser program. Just create a free lifetime account. However, if you see an error in the code, open the terminal window and type "pip install Turtle" or similar if you are not on a Windows. Here is a link for you.
Just run it. Again, this is a dead simple piece of raw code. It has a graphics user interface that is originally integrated to Python. It is extremely easy to use with the programs listed above. However, if it gives an error, open the terminal window and type "pip install Turtle".
Simple. Just email me. I will have a look at your profile page and send you an invitation link.
No, of course not! Who would I be to judge whether you should be able to contribute to the project. Just politely email me and I would happily accept your help. I am determined to set everybody as equals to make this code as good as possible.
Just don't mess around with the files. Remember that you may be held responsible for sabotage of any sort.
There are 4 game modes. This includes singleplayer and multiplayer. I have also included a version with 1 ball and another with 2 balls. Of course, you could have an infinite amount of balls as you wish when you edit the code, it would just make the game more challenging (and maybe more fun).
Of course, you are free to edit the code after you downloaded another copy, where I cannot stop you from deleting the measures. If you coincidentally cheat (meaning you get a bug which helps you get away from losig a point), please open an issue up and I will try to fix it.
- Thorough code testing. 💻
- Refactor the code. 💾
- Make the experience better. 📷
- Improve appearance. 🌻
Huge credits to TokyoEdTech for inspiring the idea. A lot of the code was his idea. Check out his YouTube channel.
- Matthew Tam
- Walter Tam
- Robert Brown
- https://docs.python.org/3/library/turtle.html
- https://realpython.com/beginners-guide-python-turtle/
- https://stackoverflow.com/questions/42874183/difference-between-turtle-and-turtle
- https://www.youtube.com/playlist?list=PLlEgNdBJEO-kXk2PyBxhSmo84hsO3HAz2
I am open to people copying my code and improving it. Just link me to the project.
However, please do not just take my code and claim it's yours.
I am looking forward to making this code work better. So please be comfortable to open issues or contact me: [email protected]