Skip to main content

CandyTable compatible to python2 and python3

Project description

CandyTable
##########

一個產生出CandyCrush初始table的小工具

Prerequisities
##############

本套件pythno2跟python3皆通用<br>
若不能執行麻煩回報`Pull Requests`

Installing
##########

- 安裝 Install:`pip install CandyTable`

## Running & Testing

## Run

執行下列指令:

```
import CandyTable
c = CandyTable.CandyTable(10,10)
c.main()
```

- 輸入想要的顏色數量: ![table3](candy3.png)
- 最高支援到35色,若初始圖片不可能讓三顆糖果連線,則自動refresh: ![table35](candy35_refresh.png)

![table35-1](candy35final.png)

- 取得這張CandyTable的資訊:<br>
`a.table`:

```
{
10: u' \U0001f36c ',
11: u' \U0001f36c ',
12: u' \U0001f36c ',
13: u' \U0001f36c ',
14: u' \U0001f36c ',
15: u' \U0001f36c ',
16: u' \U0001f36c ',
17: u' \U0001f36c ',
18: u' \U0001f36c ',
19: u' \U0001f36c ',
...
108: u' \U0001f36c ',
109: u' \U0001f36c '
}
```

x座標為1~10,y座標為0~9<br>
字串一樣代表該位置的糖果是一樣的。

## Built With

- python2.7

## License

This package use `GPL3.0` License.

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

CandyTable-1.3.tar.gz (3.0 kB view hashes)

Uploaded Source

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