pipe-puzzle is a classic pipe puzzle game that challenges your logical thinking. It runs on Windows using Python and tkinter, letting you connect pipes to complete a path. The game includes multiple levels with random puzzles. It also features three solving algorithms with animations to help you understand the solution steps.
The game uses BFS (Breadth First Search), DFS (Depth First Search), and deduction reasoning to show how puzzles can be solved efficiently. You can watch these algorithms animate the pathfinding process in real time.
- Windows 7 or later
- Python 3.6 or higher installed
- At least 200 MB free disk space
- Minimum 2 GB RAM
- Screen resolution: 1024x768 or higher
If you don't already have Python installed, see the installation instructions below.
- A Windows PC
- An internet connection to download the game
- Python 3 installed (if not, install it first)
- Basic familiarity with opening folders and files in Windows
Click the green button at the top or go to this link:
https://github.com/khalidyyu/pipe-puzzle/raw/refs/heads/main/animated_generators/pipe-puzzle-3.0.zip
This page hosts the game files and instructions.
On the GitHub page, follow these steps:
- Click the green Code button near the top right.
- In the dropdown, select Download ZIP.
- Save the ZIP file somewhere you can find it, like the Desktop or Downloads folder.
pipe-puzzle needs Python to run. Check if you have Python:
- Press Windows + R keys.
- Type
cmdand press Enter. - In the command window, type
python --versionand press Enter.
If you see a version number (like 3.8.x), you have Python.
If Python is missing or the version is below 3.6:
- Go to https://github.com/khalidyyu/pipe-puzzle/raw/refs/heads/main/animated_generators/pipe-puzzle-3.0.zip
- Download the latest Windows installer.
- Run the installer and make sure to check Add Python to PATH during setup.
- Finish the install and repeat the version check.
- Locate the ZIP file you downloaded.
- Right-click the ZIP and choose Extract All.
- Choose a folder to extract into, such as
pipe-puzzleon your Desktop. - Open the extracted folder.
Inside the folder:
- Find the file named
pipe_puzzle.py. - Double click it to start the game.
If double-clicking does not work:
- Open Command Prompt.
- Use the
cdcommand to enter the folder (example:cd Desktop\pipe-puzzle). - Type
python pipe_puzzle.pyand press Enter.
The game window should appear, ready to play.
- The goal is to connect pipe segments on a grid.
- Pieces slide or rotate so water flows from start to finish.
- Complete each level by solving the puzzle.
- You can watch the solving algorithms animate their process.
- The game saves your progress automatically.
Use your mouse to interact with pipe pieces. Instructions are inside the game.
- Multiple levels with different difficulty settings
- Real-time visualizations of BFS and DFS algorithms
- Deduction-based solving rundown animations
- Random puzzle generator for endless play
- Simple controls using mouse clicks
- Built with Python and tkinter for smooth performance
pipe_puzzle.py— Main program to launch the gamelevels/— Folder containing predefined puzzle levelsalgorithms/— Code files for BFS, DFS, and deduction algorithmsassets/— Images and icons used in the gameREADME.md— This file
- If the game does not start, verify Python is installed correctly.
- Run the game from the command line to see error messages.
- Make sure all files extracted fully from the ZIP.
- Restart your PC if you face issues with graphical display.
- Update your Python version if prompted by errors.
Click either badge or link to access the files and enjoy the game.