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.4.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file color_bottles_puzzle-0.0.4.tar.gz.

File metadata

  • Download URL: color_bottles_puzzle-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 51de2aac7a62a62dcc4a40de590f165047bd31c856b2c14000ac4790d58f811d
MD5 0f5b44f5e6ea157e5fadab51ac7d15dd
BLAKE2b-256 6b11080c94352ff0c1982341d0ea4bf9f1d4f7c3c32217cbba604d1430bdb851

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for color_bottles_puzzle-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0431c0bb1556b61100fa99d7718e8d92100da12fadff5bdee23c432ff5d09c17
MD5 64911e98af641e9b43320cc6cb8220f3
BLAKE2b-256 a3828bbf5298e55b42b083f13fc58cf47dca8dabf3ae909aeeb25b3f235b5b7f

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