Skip to main content

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

  1. console - using print() - default
  2. pygame - 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

color_bottles_puzzle-0.0.3.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

color_bottles_puzzle-0.0.3-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

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

Hashes for color_bottles_puzzle-0.0.3.tar.gz
Algorithm Hash digest
SHA256 ec5758b5e83b1469371c86d08b20532d17e9d4c298e35864a84968bfd6039a67
MD5 fab22022f23317e1c37570c669bcd49d
BLAKE2b-256 46e68d7b181ce6cfd001c4524334ce8bd8a3febf1d92a8e25a29cad36c101f28

See more details on using hashes here.

File details

Details for the file color_bottles_puzzle-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for color_bottles_puzzle-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 fea848ee63e930c4c1a03e93572681afe2c825aba5a4d93f432d4f7e8befca36
MD5 78eaf97577656aeae6f5d85e18b79f88
BLAKE2b-256 44968145fcf3521e6275182d2bc04271921eba9e84f3be843b1f4f86d3199164

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page