tenhou-wall-reproducer 1.2.0
Utility for reproducing the wall and dice information from the game seed in Tenhou platform.

[![ci](https://github.com/mjx-project/tenhou-wall-reproducer/actions/workflows/ci.yml/badge.svg)](https://github.com/mjx-project/tenhou-wall-reproducer/actions/workflows/ci.yml)
![pypi](https://img.shields.io/pypi/v/tenhou-wall-reproducer)

# Tenhou wall reproducer

Utility for reproducing the wall and dice information from the game seed in [Tenhou](https://tenhou.net/) platform.

## Install

**Tenhou wall reproducer** supports Python 3.7, 3.8, and 3.9 in Linux and Intel Mac environments.

```sh
$ pip install tenhou-wall-reproducer
```

## Usage

```py
>>> import tenhou_wall_reproducer
>>> tenhou_wall_reproducer.reproduce("""zmsk28otF+PUz4E7hyyzUN0fvvn3BO6Ec3fZfvoKX1ATIhkPO8iNs9yH6pWp+lvKcYsXccz1oEJxJDbuPL6qFpPKrjOe/PCBMq1pQdW2c2JsWpNSRdOCA6NABD+6Ty4pUZkOKbWDrWtGxKPUGnKFH2NH5VRMqlbo463I6frEgWrCkW3lpazhuVT1ScqAI8/eCxUJrY095I56NKsw5bGgYPARsE4Sibrk44sAv3F42/Q3ohmb/iXFCilBdfE5tNSg55DMu512CoOwd2bwV7U0LctLgl9rj6Tv6K3hOtcysivTjiz+UGvJPT6R/VTRX/u1bw6rr/SuLqOAx0Dbl2CC1sjKFaLRAudKnr3NAS755ctPhGPIO5Olf9nJZiDCRpwlyzCdb8l7Jh3VddtqG9GjhSrqGE0MqlR2tyi+R3f1FkoVe8+ZIBNt1A1XigJeVT//FsdEQYQ2bi4kG8jwdlICgY2T0Uo2BakfFVIskFUKRNbFgTLqKXWPTB7KAAH/P4zBW1Qtqs9XuzZIrDrak9EXt/4nO0PYVTCjC1B+DE/ZlqgO8SoGeJRz/NbAp6gxe0H1G7UQ+tr2QfZUA1jDUInylosQDufKpr0gPQMQepVI6XjpWkNrVu6zFwedN1W8gUSd6uDKb83QS49/pXSBWmEXSDC8dWs0a1SopdbroqZxoVfg2QUuwdMa7LHQ71fg63yY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5s/ANHnhaQK8rowD8fEuSI8VjQYaKt7YEDd5jT0ljwf3aC2mB+hCxK7W7myTTU6GsJnWy7wFbGHi7DQC+0OQyAVuBw26PmecxOsdMQ0mA7EEemFO46uFT0w8bM86NoebI9KC5FDQh7DiDDiUWYSbZa/E+AKW6C9ADaYlMIg2Fi9tfptqeL0euFQCTo/QDk/Dv2AqGs5xTIk2+I50UfIT7x1SEOXErodN6C+qxpcGMLH5C/7rLo1lgMLGHRNSPKCBmqrrKiOt1eGtWHbE42kcZStPtSvj+ElQ9vIrHEYKITiwXaPuu3JggpaJOqKbDHnDlmosuECzXeVlRDaJyhnQ0FlmtUYOwEJ/X+QRgp84c0MCK/ZwKOq4OWQYzT4/nh4kjJEL0Jqmzx3tDCcKGUruzi+bXVwNQVEZusjlIM+20ul0Ed/NQirkyiMPTiVAjTXNuYKg4hIFvQq+h""", 1)
[([124, 122, 37, 27, 80, 127, 125, 87, 104, 67, 115, 95, 8, 57, 92, 130, 69, 118, 20, 128, 35, 6, 123, 56, 103, 96, 55, 85, 109, 88, 32, 63, 26, 117, 16, 17, 82, 47, 68, 23, 9, 25, 65, 5, 39, 94, 76, 58, 97, 36, 14, 99, 111, 7, 133, 113, 31, 100, 131, 70, 28, 46, 30, 60, 79, 41, 74, 116, 75, 93, 105, 49, 91, 135, 114, 42, 45, 132, 21, 119, 18, 24, 129, 51, 121, 3, 81, 40, 29, 13, 34, 19, 86, 78, 53, 64, 50, 71, 120, 83, 66, 84, 126, 4, 12, 10, 101, 102, 22, 112, 15, 48, 134, 77, 0, 11, 108, 98, 61, 1, 107, 110, 59, 90, 2, 44, 54, 38, 89, 33, 62, 43, 73, 106, 72, 52], [4, 5])]
```

Data is collected from http://tenhou.net/0/?log=2017020100gm-00e1-0000-17d39cdb.

## Build from source

```sh
$ make install
$ python3 tests/test.py
```

## License

MIT