vocdex / pong-wars-python

Python version of Pong Wars with Pygame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pong Wars

Pong Wars Pong Wars

Description

Pong Wars is a colorful and dynamic variation of the classic Pong game implemented in Python using Pygame. In this game, two balls compete to fill the game area with their respective colors.

The current version of the game supports two modes: 2 players and 4 players.

Dependencies

The project requires Python along with the following libraries:

pip install pygame moviepy natsort

Usage

python 2_players.py
python 4_players.py

Options

args:
-- record_frames: record frames for video and makes a gif
-- seed: seed for random number generator

Credits

  1. This code is inspired by Koen van Gilst's JavaScript implementation of Pong Wars
  2. Relevant Hacker News discussion: Show HN: Pong Wars – A colorful and dynamic variation of the classic Pong game

What's next?

  1. Build Gymnasium environment for Pong Wars to train RL agents

About

Python version of Pong Wars with Pygame

License:MIT License


Languages

Language:Python 100.0%