Skip to content

Ai-pong-game revives the classic Pong in Python. Play head-to-head or against an AI that uses machine learning to improve its gameplay over time, developing more human-like reflexes by analyzing ball and paddle movements.

Notifications You must be signed in to change notification settings

brandontran1220/ai-pong-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

AI Pong Game

This Pong game offers both single-player and two-player modes. In single-player mode, you face off against an AI opponent, with difficulty levels to choose from: easy, medium, or hard. For a more competitive experience, the two-player mode lets you challenge another person on the same device, adding an exciting local multiplayer dynamic.

This Pong game is designed for players of all ages who enjoy classic arcade-style games. It appeals to both casual gamers looking for a fun and simple challenge and more competitive players who want to test their skills against progressively difficult AI or a friend in local multiplayer mode. The game is easy to pick up, making it suitable for beginners, yet offers enough challenge to keep experienced players engaged.

Directions to play:

-To play, download both folders (build and dist) with all subfolders as well, then click on main.exe in the folder dist/main.

-First Player Movement *Use 'w' to move up and 's' to move down

-Second Player Movement *Use 'UP' to move up and 'DOWN' to move down

Winning the game: -To win the game, one player has to reach 11 points. -Each point is gained when the ball passes the other players paddle and hits the wall behind their paddle.

Screenshots

Home

The Home page of the Pong game offers players a choice between two exciting modes: Single Player or Two Player. In Single Player mode, you can challenge yourself against an AI opponent, with difficulty levels ranging from easy to medium and hard. For those looking for a competitive experience with a friend, the Two Player mode allows both players to compete head-to-head on the same device. The clean and simple interface ensures easy navigation, making it quick to jump into either mode for a fun and engaging match.

Home

Single Player

In Single Player mode, after selecting your match, you can choose from three AI difficulty levels: Easy, Medium, or Hard. Each difficulty adjusts the AI's speed and reaction time, offering a tailored challenge. "Easy" is perfect for beginners or casual players, providing a slower-paced game. "Medium" offers a balanced experience, ideal for those seeking a fair challenge. For seasoned players, "Hard" delivers a fast-paced, competitive match where quick reflexes and strategic gameplay are crucial. This difficulty selection allows players of all skill levels to enjoy the game at their own pace.

Difficulty

Playing Screen

The playing screen features a classic Pong setup with a clean, minimalist design. The left paddle is colored red, while the right paddle is blue, each matching their respective player’s score displayed at the top of the screen. The scores are highlighted in the same color as the paddles, ensuring easy tracking of each player’s progress. A dotted white line runs vertically down the center of the playing area, visually dividing the two sides and adding a retro touch. The simple, color-coded elements create an engaging and easy-to-follow gameplay experience.

Playing

Acknowledgements

About

Ai-pong-game revives the classic Pong in Python. Play head-to-head or against an AI that uses machine learning to improve its gameplay over time, developing more human-like reflexes by analyzing ball and paddle movements.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published