Skip to content

A creative game by combination of two games named Pong and Conway's Game Of Life. First project with pygame I'll be using it in future projects to implement AI playing games.

License

Notifications You must be signed in to change notification settings

MahanNoosh/LifePong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

26 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿงฌ LifePong

A creative fusion of Pong and Conway's Game of Life, implemented using Pygame.


๐ŸŽฎ Overview

LifePong reimagines the classic Pong game by integrating the principles of Conway's Game of Life.
Players place living cells on their side of the board, which evolve over time and act as paddles to interact with the ball.
This dynamic creates a unique and unpredictable gameplay experience.


๐Ÿ“‹ Features

  • Cell Placement: Players can place or remove cells on their side of the board using the mouse or by dragging for quick input.
  • Cell Evolution: Cells evolve each frame based on the Game of Life rules, affecting the movement and interaction with the ball.
  • AI Integration: Future plans include implementing AI to place paddles, making the game more challenging.
  • Pygame Implementation: Built using Pygame, providing smooth graphics and real-time interaction.

๐Ÿงช Rules

At the beginning of each round, players have 40 cells to place/remove (make alive/kill) on their side of the board using the mouse (you can also drag for quick input). These and their future generations will work as paddles of the original Pong game.

At each step in time, the following transitions occur:

  • Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  • Any live cell with two or three live neighbours lives on to the next generation.
  • Any live cell with more than three live neighbours dies, as if by overpopulation.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

These rules create a dynamic environment where the paddles' behavior is influenced by the evolving cell patterns.


๐Ÿš€ Getting Started

Prerequisites

  • Python 3.x
  • Pygame library

Installation

  1. Clone the repository:
git clone https://github.com/MahanNoosh/LifePong.git
  1. Install dependencies:
pip install pygame
  1. Run the game:
python main.py

๐Ÿค– Future Enhancements

  • AI Players: Develop AI algorithms to place paddles, enhancing gameplay complexity.
  • Multiplayer Mode: Implement online multiplayer functionality.
  • Advanced Visuals: Improve graphics and animations for a more immersive experience.
  • Sound Effects: Add sound effects to enhance user engagement.

About

A creative game by combination of two games named Pong and Conway's Game Of Life. First project with pygame I'll be using it in future projects to implement AI playing games.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages