semvec/pypi-packages huggingface dataset:
tkmsg 1.1.0
This module has a more beautiful pop-up window

# Install Command
pip install tkmsg

# Author Email
bilibili_wulihb@outlook.com/ice-team@outlook.com

# Use example
First you should import this package:`import tkmsg`
Then,You can copy the following code:
`print(tkmsg.inputbox('Title','Enter you ID:',tips='hello world'))`
`print(tkmsg.msgbox('Title','Hello World',tips='Tips'))`
Finally,Run the data!

# LICENSE
MIT
moonlightd 0.0.4
dl-uplink telegram bot
Requires Python: >=3.10

<h1 align="center">
  <img src="https://user-images.githubusercontent.com/50381946/167810957-14b78013-00cf-436e-b535-d2b89f881c44.png">
  <br>
  <code>
    moonlightd
  </code>
  <br>
</h1>

Proin lacinia metus auctor est posuere, in ornare dui hendrerit. Aliquam eget est gravida, iaculis tortor a, aliquam ligula.

Morbi semper metus at egestas vulputate:

- Nullam viverra nisi vel tellus finibus tincidunt.
- Pellentesque at velit placerat, gravida eros eu, blandit est.
- Curabitur id odio et magna semper vestibulum.
- Donec id lectus ut mi tincidunt commodo et eget risus.


## Motivation

<div align="center">

![image](https://user-images.githubusercontent.com/50381946/190855236-6804df02-7f64-46a7-890a-9e0b60df7969.png)

</div>

## Installation

    pipx install moonlightd

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. 

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.

Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

## Usage

    grep -lrEe 'moonlightd' | xargs sed -i 's/[*]PROJECT_NAME/xxx/g'
    grep -lrEe '2022' | xargs sed -i 's/[*]CYR/yyyy/g'
    mv PROJECT_NAME xxx

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. 

Et harum quidem rerum facilis est et expedita distinctio.

    grep --color -rEe '[*]PROJECT_\B'

Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. 

_Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat._

## Changelog

### v0.0.0

- yes
sudokum 0.0.1
python sudoku generator and solver
Requires Python: >=3.6

# A Sudoku generator and solver

This is a Sudoku game written in python, default to use Wave Function Collapse method.

A puzzle can be generated by following function with a mask rate.

## Install

```shell
pip install sudokum
```

# Generation

A sudoku can be generated with a `mask_rate`. A full solution is generated when passing `mask_rate=0`.

```python
import sudokum

g = sudokum.generate(mask_rate=0.7)
print(g)
"""
[[1 0 0 5 0 0 0 0 3]
 [0 3 7 0 0 1 0 0 4]
 [0 0 0 0 0 2 0 0 0]
 [0 0 0 0 9 4 0 0 0]
 [0 0 4 0 0 0 0 3 2]
 [0 0 0 3 2 5 0 0 0]
 [0 0 0 0 0 0 2 0 0]
 [7 4 0 0 0 0 0 0 0]
 [8 0 0 0 0 3 1 0 0]]
"""
```

To visualize the generating procedure, I have made a GUI for animate Wave Function Collapse in sudoku generation.

```python
import sudokum
sudokum.display_wfc()
```

![auto](https://github.com/MorvanZhou/sudoku/tree/main/demo/sudoku_auto.gif)

Or you can get you hand on it by running following code.

```python
import sudokum
sudokum.display_wfc(human=True)
```

![human](https://github.com/MorvanZhou/sudoku/tree/main/demo/sudoku_human.gif)

# Solving

By using `solver()` function, it tries to solve the puzzle.

```python
import sudokum

g = sudokum.generate(mask_rate=0.7)
s = sudokum.solve(g)
print(s)
"""
[[1 2 8 5 4 7 6 9 3]
 [6 3 7 9 8 1 5 2 4]
 [4 9 5 6 3 2 7 1 8]
 [2 1 3 7 9 4 8 5 6]
 [5 7 4 1 6 8 9 3 2]
 [9 8 6 3 2 5 4 7 1]
 [3 5 1 4 7 6 2 8 9]
 [7 4 2 8 1 9 3 6 5]
 [8 6 9 2 5 3 1 4 7]]
"""
```

A solving max try number can set as following:

```python
import sudokum

s = sudokum.solve(g, max_try=3)
```

## Manually check solution

If you have your own solution, you can validate it by following function:

```python
import sudokum

ok, position_of_problems = sudokum.check(g)
```

# More Example

More use cases can be found in my [test files](https://github.com/MorvanZhou/sudoku/tree/main/tests).