About 1,210 results
Open links in new tab
  1. 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 …

  2. 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 …

  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. 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 …

  5. 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 …

  6. 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. #

  7. Pong in Python and Pygame - Code Review Stack Exchange

    Aug 20, 2016 · Pong in Python and Pygame. Ask Question ... Ping Pong game in pygame. 6. Python/Pygame Fighting Game. 6 ...

  8. 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 …

  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 - 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 …