Skip to content

vocdex/pong-wars-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages