About 200 results
Open links in new tab
  1. Pong game in Python with tkinter - Code Review Stack Exchange

    Nov 14, 2019 · if __name__ == '__main__': pong = Pong() pong.play() This prevents the two lines from being run if you decide to import this game from another module. Keystrokes. It seems a …

  2. python - 1 player Pong with AI - Code Review Stack Exchange

    Feb 7, 2019 · I have made this pong game as a 1 player game, versus the computer. however it is impossible to beat the ai. Any ideas to make the code better would be appreciated. import …

  3. Simple Python Pong Game - Code Review Stack Exchange

    May 13, 2018 · a Pong enviroment (class) class Pong: def __init__(self, players): pass def start_game(self): pass def reset_game(self): pass Using a structure like this will improve the …

  4. Pong game in Python - Code Review Stack Exchange

    I'm writing a pong game in Python and I created classes for the game objects. The top level class is Object, and Ball and Paddle inherit from it. And ComputerPaddle is a child class of Paddle. #

  5. Python Turtle based Pong game - Code Review Stack Exchange

    Aug 2, 2018 · def change_pong_direction(pong): pong.dy *= -1 pong.dx *= -1 return pong As we're trying to keep the variables in the main loop the same, we need to pass them into the …

  6. Python Pong using turtle - Code Review Stack Exchange

    May 10, 2019 · I am a new Python programmer, and I am learning how to use the turtle import. I am making some projects, and now I am trying to do a Pong game using turtle. It is working …

  7. python - Playing pong (atari game) using a DQN agent - Code …

    Dec 25, 2020 · A DQN, or Deep Q-Network, approximates a state-value function in a Q-Learning framework with a neural network. In the Atari Games case, they take in several frames of the …

  8. python - Pong using pygame module - Code Review Stack Exchange

    Oct 28, 2023 · I made a game in Python where you play Pong against an AI. As I am quite new to pygame, I would be grateful to hear any possible improvements. This is my code: import …

  9. First OOP in Python 3: Pygame Pong - Code Review Stack Exchange

    Feb 7, 2019 · By placing the paddle in a specific position I managed to break the game (see the image). I think you should add a random starting angle when the game restarts. Also, as …

  10. python - Basic Pong game in Pygame - Code Review Stack Exchange

    Apr 8, 2016 · Because Paddle and Ball have a lot in common, I think it would make sense if they were to inherit from a common class (PhysicalObject for instance) with size, position, velocity, …

Refresh