Metadata-Version: 2.1
Name: motsmeles
Version: 3.3.0
Summary: générateur de mots mêlés
License: MIT
Author: RadoTheProgrammer
Author-email: rado@arazakar.com
Requires-Python: >=3.12,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: numpy (>=1.26.4,<2.0.0)
Requires-Dist: pandas (>=2.2.1,<3.0.0)
Description-Content-Type: text/markdown

 This is a word crossing game generator, install it with `pip3 install motsmeles`

# Usage

To use it, just import the library

```python
import motsmeles

game,answers=motsmeles.generate(
    [
        "PYTHON",
        "JAVA",
        "CPP",
        "HTML",
        "CSS",
        "PHP",
        "RUBY",
        "SWIFT",
        "PERL",
        "RUST",
    ],
    width = 10, 
    height = 10)



```

The `game` variable contain the grid and the words of the game, you can display it or save it in a file

```python

print(game)
game.save("motsmeles.txt")
```
# Solver
You can also load a game from a file
```python
game = motsmeles.load("motsmeles.txt")
```

And then solve it
```python
answers=game.solve()
print(answers)
```
# CLI Usage

You can also execute the cli version

```

motsmeles PYTHON JAVA CPP HTML CSS PHP RUBY SWIFT PERL RUST -W 10 -H 10
```

