terminal-water-sort
v1.1.0
Published
CLI water sort puzzle for terminal
Maintainers
Readme
Terminal Water Sort
Terminal Water Sort is a command-line water sort puzzle game.
Screenshot

Features
- Vertical bottle rendering with Unicode lines
- ANSI color display with fallback text symbols
- Simple move input in
<from> <to>format (example:1 2) - Difficulty presets:
easy,normal,hard - Random rounds based on selected difficulty
- Continue playing after clear (
nfor next round,qto quit)
Requirements
- Node.js 20+
Quick Start
Run instantly (recommended)
npx terminal-water-sortInstall as a command
npm install -g terminal-water-sort
terminal-water-sortHow to play
- Goal: every bottle must be either empty or full with one color only
- At startup, choose a difficulty (
easy,normal,hard, default:normal) - Move input:
1 2means pour from bottle 1 to bottle 2 - A move is valid when:
- source bottle is not empty
- destination bottle has free space
- destination is empty, or top colors match
- Continuous top layers of the same color move together as much as possible
- After clear, the game stays open (
nfor next round,qto quit)
Difficulty profiles
easy: 10 bottles (8 full + 2 empty)normal: 10 bottles (5 full + 4 partial(3 layers) + 1 empty)hard: 14 bottles (9 full + 4 partial(3 layers) + 1 empty)
Commands
1 2pour from bottle 1 to bottle 2rrestart current roundnstart a new random rounddchange difficulty and start a new roundhelpshow command listqquit game
License
MIT License. See LICENSE.
