Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 994 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 994 Bytes

🎮 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