Water color sort puzzle game
Project description
Color bottles puzzle
๐ก๏ธ Watter color sort puzzle game ๐งช
Install and play:
pip install color-bottles-puzzle
color-bottles
๐ Objective
Make bottles full with one color or empty -> ๐
๐ Rules
You can pour color water from one bottle to another only if destination bottle is not full, is empty or have same color on top.
๐น๏ธ Controls (Console frontend)
To pour from bottle 3
to bottle 7
just type 3 7
and enter.
If number of bottles less then 10, you can ommit the space ๐ฅ
Also you can pour multiple times by 1 hit ๐ฅ - just type in a row
like 5718
or 5 7 1 8
- will pour 5
to 7
and then 1
to 8
๐ด To exit - type q
๐ฎ Good luck !!
Examples of a game (monospaced font in console work just fine):
๐ฎ Good luck !!
|โฌ๏ธ| |๐ฆ| |โฌ๏ธ| |๐ง| |๐ซ| |๐ฉ| |๐ช| | | | |
|โฌ๏ธ| |๐ฉ| |๐ซ| |๐ช| |๐ฉ| |๐ฅ| |๐ซ| | | | |
|๐ง| |๐ซ| |๐ฅ| |๐ง| |๐ง| |๐ช| |๐ฆ| | | | |
|๐ฉ| |๐ฅ| |๐ฆ| |๐ฅ| |โฌ๏ธ| |๐ช| |๐ฆ| | | | |
0 1 2 3 4 5 6 7 8
๐ฎ your turn: 0 7 2 7 3 0 4 2 5 4 6 3
| | |๐ฆ| |๐ซ| |๐ช| |๐ฉ| | | | | | | | |
|๐ง| |๐ฉ| |๐ซ| |๐ช| |๐ฉ| |๐ฅ| |๐ซ| |โฌ๏ธ| | |
|๐ง| |๐ซ| |๐ฅ| |๐ง| |๐ง| |๐ช| |๐ฆ| |โฌ๏ธ| | |
|๐ฉ| |๐ฅ| |๐ฆ| |๐ฅ| |โฌ๏ธ| |๐ช| |๐ฆ| |โฌ๏ธ| | |
0 1 2 3 4 5 6 7 8
๐ฎ your turn: 6 8 2 8 5 2 3 5
| | |๐ฆ| | | | | |๐ฉ| |๐ช| | | | | | |
|๐ง| |๐ฉ| |๐ฅ| | | |๐ฉ| |๐ช| | | |โฌ๏ธ| |๐ซ|
|๐ง| |๐ซ| |๐ฅ| |๐ง| |๐ง| |๐ช| |๐ฆ| |โฌ๏ธ| |๐ซ|
|๐ฉ| |๐ฅ| |๐ฆ| |๐ฅ| |โฌ๏ธ| |๐ช| |๐ฆ| |โฌ๏ธ| |๐ซ|
0 1 2 3 4 5 6 7 8
๐ฎ your turn:
Frontend
There is a core
module (water sort rules logic) of color bottles that is frontend agnostic.
Thats why we have 2 frontends for now
console
- usingprint()
- defaultpygame
- using pygame GUI
To run game with pygame GUI, install package with pygame extras:
python3 -m venv env
source env/bin/activate
pip install "color-bottles-puzzle[pygame]"
color-bottles
Roadmap
- Test for game logic
- Test console game
- Solver
- Levels
- More frontend
- Github actions CI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file color_bottles_puzzle-0.0.3.tar.gz
.
File metadata
- Download URL: color_bottles_puzzle-0.0.3.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec5758b5e83b1469371c86d08b20532d17e9d4c298e35864a84968bfd6039a67 |
|
MD5 | fab22022f23317e1c37570c669bcd49d |
|
BLAKE2b-256 | 46e68d7b181ce6cfd001c4524334ce8bd8a3febf1d92a8e25a29cad36c101f28 |
File details
Details for the file color_bottles_puzzle-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: color_bottles_puzzle-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.2 CPython/3.10.9 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fea848ee63e930c4c1a03e93572681afe2c825aba5a4d93f432d4f7e8befca36 |
|
MD5 | 78eaf97577656aeae6f5d85e18b79f88 |
|
BLAKE2b-256 | 44968145fcf3521e6275182d2bc04271921eba9e84f3be843b1f4f86d3199164 |