一個產生出CandyCrush初始table的小工具
Prerequisities
本套件pythno2跟python3皆通用
若不能執行麻煩回報Pull Requests
Installing
安裝 Install:pip install CandyTable
Running & Testing
Run
執行下列指令:
import CandyTable c = CandyTable.CandyTable(10,10) c.main()
輸入想要的顏色數量:
最高支援到35色,若初始圖片不可能讓三顆糖果連線,則自動refresh:
a.table:可以取得這張CandyTable的資訊
{ 10: u'[0;33;40m 🍬 [0m', 11: u'[0;33;40m 🍬 [0m', 12: u'[0;32;40m 🍬 [0m', 13: u'[0;31;40m 🍬 [0m', 14: u'[0;33;40m 🍬 [0m', 15: u'[0;33;40m 🍬 [0m', 16: u'[0;32;40m 🍬 [0m', 17: u'[0;31;40m 🍬 [0m', 18: u'[0;33;40m 🍬 [0m', 19: u'[0;32;40m 🍬 [0m', ... 108: u'[0;33;40m 🍬 [0m', 109: u'[0;33;40m 🍬 [0m' }
座標系統從左上角開始數
左上角為10 右下角為109 y座標為1到10,x座標為0到9
字串一樣代表該位置的糖果是一樣的。
Built With
python2.7
License
This package use GPL3.0 License.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CandyTable-2.4.tar.gz
(3.1 kB
view details)
File details
Details for the file CandyTable-2.4.tar.gz.
File metadata
- Download URL: CandyTable-2.4.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa075cc0a17219d34276bda70f04cf36f46a6baaa0b2450ebb8a542ba792ee7a
|
|
| MD5 |
a73f0db98c1b5ec92962a5eb57161e2b
|
|
| BLAKE2b-256 |
ce86e73b2f14d854d933050addadb16ea60f1df474320c6469fefed6fb1ffe82
|