A modern, stable Pong game implementation in C++ with dynamic speed system and multiple AI modes. One command, instant play!
- Challenge an intelligent AI opponent
- Smart AI that follows and predicts ball movement
- Perfect for single-player practice
- Classic two-player mode on same keyboard
- Player 1: W/S keys, Player 2: I/K keys
- Great for local multiplayer fun
- Watch AI battle: Smart Bot vs Patrol Bot
- Different AI strategies in action
- Just sit back and enjoy the show!
๐ One-Click Play (Recommended) - You just need to copy the command, paste in your terminal / command prompts, that's all, no complex download required
๐ ULTRA SMOOTH (Recommended) - High-performance rendering:
powershell -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/TomDevX/terminal-pong/main/pong_windows_smooth.ps1'))"โก Standard - Try this if Ultra Smooth doesn't work:
powershell -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/TomDevX/terminal-pong/main/pong_windows_simple_powershell.ps1'))"# Paste the command in terminal and play instantly:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/TomDevX/terminal-pong/refs/tags/v5/terminal_pong_installer.sh)"| Platform | Download Link | Instructions |
|---|---|---|
| Windows (Instant) | ๐ฅ Download & Run | Right-click โ Save As โ Run with PowerShell |
| Windows (Auto) | ๐ฅ Download pong_auto.bat | Right-click โ Save As โ Run as Administrator |
| Windows (Simple) | ๐ฅ Download pong.bat | Right-click โ Save As โ Double-click to run |
| Linux/macOS | ๐ฅ Download pong.sh | chmod +x pong.sh && ./pong.sh |
๐ฏ That's it! The game will auto-compile and start.
| Method | Requirements | Performance | Best For |
|---|---|---|---|
| ๐ Ultra Smooth | PowerShell 3.0+ | 60fps, Zero flicker | Most users - Smoothest experience |
| โก Instant Play | PowerShell 3.0+ | Standard 30fps | For those who wanna try some bugs as features - Good performance |
Recommendation: Try Ultra Smooth first for the best gaming experience!
Want to modify the game or see the source code?
# Clone the complete repository:
git clone https://github.com/TomDevX/terminal-pong.git
cd terminal-pong
# Use the development launcher:
./run_game.sh- Click [Download Source ZIP] โ https://github.com/TomDevX/terminal-pong/archive/main.zip
- Extract and explore the code
- Main game file:
pong_stable_fixed.cpp - Development launcher:
run_game.sh
| Mode | Player 1 | Player 2 | Quit |
|---|---|---|---|
| Human vs Human | W/S | I/K | Q |
| Human vs Bot | W/S | AI | Q |
| Bot vs Bot | AI | AI | Q |
- Speed increases every 3 paddle hits
- Real-time speed display (1x โ 5x)
- Visual hit counter tracking
- Speed resets after each score
- Stable display with no screen flickering
- Smooth ball physics with proper collision detection
- Smart AI with ball prediction
- Patrol AI with movement patterns
- No freeze issues during gameplay
- Non-blocking input handling
- ANSI escape sequences for smooth display
- Cross-platform compatibility (macOS/Linux)
- Optimized game loop for stability
- One file download - no git clone, no setup, and compatible for every OS!
- Auto-compilation - detects compiler and builds automatically
- Self-contained - all source code embedded in installer
- Auto-cleanup - temporary files cleaned after play
- Dynamic speed system - gets faster every 3 paddle hits
- Freeze-free - completely stable, no mid-game crashes
- Smart AI - intelligent bot with ball prediction
- Multiple modes - single player, multiplayer, AI demo
- Objective: Use your paddle to hit the ball and prevent it from passing
- Scoring: First player to reach 5 points wins
- Speed System: Game gets faster every 3 paddle hits (max 5x speed)
- Physics: Ball bounces off top and bottom walls
- Reset: Ball and speed reset to center after each score
- โ Freeze-Free Gameplay - Completely stable, no mid-game freezes
- โ Real Speed Changes - Noticeable speed increases you can actually feel
- โ Smart AI - Intelligent bot that predicts ball trajectory
- โ Multiple Modes - Single player, multiplayer, and demo modes
- โ Easy Setup - One-click launcher with menu selection
- โ Clean Display - Smooth terminal graphics with emojis
- Ensure your terminal supports non-blocking input
- Try running with different terminal applications
- Check that termios library is available
- Verify your terminal supports ANSI escape sequences
- Try resizing the terminal window
- Ensure minimum terminal size (40x20 characters)
- Ball Speed Levels: 5 (140ms โ 35ms delay)
- Paddle Size: 4 characters
- Game Field: 40x18 characters
- Win Score: 5 points
- Speed Increase: Every 3 hits
๐ง HUMAN vs BOT (Frame: 45)
Score: P1=2 P2=1 | Speed: 3x | Hits: 7
Controls: W/S (You), Q=quit
==========================================
| | |
| # | |
| # | |
| # | |
| # | |
| | |
| | # |
| | # |
| | O # |
| | # |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
==========================================
Complete.all.gamemode.walkthrough.mp4
| Action | Link |
|---|---|
| ๐ฎ Play Now with Mac | Download Game |
| ๐ฎ Play Now with Windows | Download Game |
| ๐ง Source Code | Download ZIP |
| ๐ Full Repo | Browse GitHub |
| ๐ Report Issues | Create Issue |
Made with โค๏ธ by TomDevX
Last updated: August 18, 2025 - Stable release with dynamic speed system