Skip to content

Pong in Rust — A Retro Arcade Classic Re-imagined

License

Notifications You must be signed in to change notification settings

hmousavin/RustPong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Pong in Rust

A classic Pong game implemented in Rust using the awesome bracket-lib!
This version features smooth ball physics, paddle collisions, basic AI, and scorekeeping.

pong banner

🚀 Features

  • 🏓 Two players: Human (keyboard) vs AI (auto-tracking)
  • 🎯 Ball mechanics with wall and paddle collisions
  • 💥 Scorekeeping and win detection
  • 🕹️ Simple main menu
  • 🔁 Game resets after each score

🧰 Dependencies

You can add it to your project by including this in your Cargo.toml:

[dependencies]
bracket-lib = "0.8"

🛠️ How to Run From Source

  1. Clone this repo:
git clone https://github.com/hmousavin/rust-pong.git
cd rust-pong
  1. Build and run the game:
cargo run

About

Pong in Rust — A Retro Arcade Classic Re-imagined

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages