Skip to content

MustafaSaktas/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏓 Pong Game (C & ncurses)

A classic Pong game implemented in C using the ncurses library. Play in the terminal with smooth controls, increasing difficulty, and both single-player and local multiplayer modes.


🎮 Features

  • 🧠 Single-player mode (AI opponent)
  • 👥 Two-player local mode
  • 📈 Dynamic difficulty (ball speed increases over time)
  • 🎯 Score tracking system
  • 🖥️ Terminal-based UI using ncurses
  • ⏸️ Pause menu and game states

🛠️ Requirements

  • GCC (C compiler)
  • ncurses library
  • Make (optional, if using Makefile)

⚙️ Installation & Run

1. Clone the repository

git clone https://github.com/MustafaSaktas0/Pong.git
cd Pong

2. Compile

With Makefile:

make

Or manually:

gcc pong.c -o pong -lncurses

3. Run

./pong

🎹 Controls

Player 1

  • W → Move Up
  • S → Move Down

Player 2

  • → Move Up
  • → Move Down

General

  • P → Pause
  • Q → Quit

🧠 How it works

  • Game loop handles rendering and input in real-time
  • Ball physics include direction and speed changes
  • AI predicts ball position (basic logic)
  • Score system resets round with slight delay

🚀 Future Improvements

  • Sound effects 🔊
  • Better AI difficulty levels 🤖
  • GUI version (SDL / OpenGL) 🎨
  • Online multiplayer 🌐

📄 License

This project is licensed under the MIT License.


👨‍💻 Author

Mustafa Saktaş


⭐ Support

If you like this project, consider giving it a star ⭐ on GitHub!

About

Classic Pong reimagined in the terminal with C and ncurses. Play solo against AI or challenge a friend, with increasing speed and simple menu system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors