Water Sort Solver is a web-based puzzle-solving application that allows users to set up and solve the "Water Sort Puzzle" game. The app provides an interactive interface to create custom puzzles, load presets, and visualize the solution step-by-step.
- Custom Puzzle Setup: Add tubes, fill them with colors, and create your own puzzle.
- Preset Puzzles: Load predefined puzzles of varying difficulty levels (Easy, Medium, Hard).
- Automatic Solver: Solve puzzles using an A* algorithm with heuristic optimization.
- Step-by-Step Visualization: Watch the solution unfold step-by-step or control the playback manually.
- Interactive UI: Add, remove, or clear tubes and colors with ease.
- Adjustable Speed: Control the speed of the solution playback.
- React: For building the interactive user interface.
- Tailwind CSS: For styling the application.
- A Algorithm*: For solving the puzzle efficiently.
To run this project, you need:
- A modern web browser
- An internet connection (to load external libraries)
- Clone this repository to your local machine.
- Ensure the following files are in the project directory:
index.htmlapp.jsgame-screenshot.jpg(optional, for the README preview)
- Open the
index.htmlfile in your browser. - The application will load, and you can start creating or solving puzzles.
Alternatively, you can use the hosted version: Water Sort Solver
-
Create a Puzzle:
- Add tubes using the "+ Add Tube" button.
- Select a color and click on a tube to fill it.
- Remove or clear tubes as needed.
-
Load a Preset:
- Use the dropdown menu to select a preset puzzle.
-
Solve the Puzzle:
- Click the "Solve Puzzle 🧠" button to start the solver.
- Watch the solution step-by-step or use the playback controls.
-
Reset:
- Use the "Reset All" button to clear the puzzle and start over.
water-sort-solver/ ├── index.html # Main HTML file ├── app.js # React application logic ├── game-screenshot.jpg
The project uses the following external libraries:
These libraries are loaded via CDN links in the index.html file.
This project is licensed under the MIT License. See the LICENSE file for details.
Enjoy solving puzzles with the Water Sort Solver! 🎉
