Giter Club home page Giter Club logo

pong-game's Introduction

Pong Game


Project Overview

Pong is a table tennis-themed arcade sports video game, featuring simple two-dimensional graphics, originally developed by Atari. It was one of the earliest and most iconic arcade video games, laying the foundation for the gaming industry.

Objective

This project aims to faithfully replicate the classic Pong game, allowing users to enjoy the nostalgic experience of playing against another player or a trained AI opponent. The goal is to capture the simplicity and excitement of the original game while incorporating modern coding practices and enhancements.

Game Modes

  • Two-Player Mode: Challenge a friend on the same device, each controlling a paddle on opposite sides of the screen.
  • Single-Player Mode: Test your skills against a computer-controlled opponent [NEAT Algorithm].

Development Goals

  • Learning and Applying Pygame: This project serves as a practical exercise in using the Pygame library to create a functional game.
  • Implementing Core Game Mechanics: Focus on developing and fine-tuning the physics and controls to ensure an enjoyable gameplay experience.
  • Creating a Nostalgic Experience: Recreate the charm of the original Pong Game gameplay.

Project Execution

This Project is mainly divided into 2 seperate parts:

  1. Trainning of the NEAT Algorithm [Genetic Algorithm]
  2. Main Application which allows the User to adventure himself inside this Arcade Game

Train AI

In order to properly train the NEAT Algorithm, please run the following command on your terminal :

python Train_AI.py

Keep in mind that it is possible to modify the configuration file in order to change the way the Algorithm trains and ultimately performs against other agents / players.

Run the Application

Finally, to run the main application make sure to be inside the correct directory and therefore execute the following command:

python Pong_Game.py

Ultimately here's a short video on how the Application works and what you might find inside it:

Pong_Game.mov

README.md by Gonçalo Esteves

pong-game's People

Contributors

estevesx10 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.