Skip to main content

générateur de mots mêlés

Project description

C'est un générateur de mots mêlés. Pour l'installer, exécutez pip install motsmeles

Usage

Importez la librairie motsmeles.

import motsmeles

Ensuite pour générer un mots-mêlés, utilisez la fonction motsmeles.generate()

jeu,answers=motsmeles.generate(
    [
        "PYTHON",
        "JAVA",
        "CPP",
        "JAVASCRIPT",
        "HTML",
        "CSS",
        "PHP",
        "RUBY",
        "SWIFT",
        "PERL",
        "RUST",
    ],
    dimensionsx = 10, 
    dimensionsy = 10)

La variable jeu contient le mots-mêlés, c'est un tableau Numpy, pour l'afficher utilisez motsmeles.print() et pour l'enregistrer dans un fichier motsmeles.save()

motsmeles.print(jeu)
motsmeles.save(jeu,file="motsmeles.txt")

Usage en CLI

Vous pouvez aussi éxécuter directement dans le CLI


motsmeles PYTHON JAVA CPP JAVASCRIPT HTML CSS -x 10 -y 10

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

motsmeles-2.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

motsmeles-2.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file motsmeles-2.0.0.tar.gz.

File metadata

  • Download URL: motsmeles-2.0.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

File hashes

Hashes for motsmeles-2.0.0.tar.gz
Algorithm Hash digest
SHA256 b3b7cbc520872aeb2a1c95512109762ad5ad4a3f0a42cd028b6de8e411cb2396
MD5 0883b6f7e799bb1c9d6e9e7680231ad6
BLAKE2b-256 86714257297fe429858d75d6d64044465d73d52975ece01b49c6013fafdcea7a

See more details on using hashes here.

File details

Details for the file motsmeles-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: motsmeles-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Darwin/21.6.0

File hashes

Hashes for motsmeles-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5acc1ee7fc73d832c32115a81c577528b29346f14ebeb1ef146ef906038a2129
MD5 eb1375920ceeaf483e6a75e65b517ed8
BLAKE2b-256 92517748bbc7b620915f507894401ca07e089d818b1997cb63d37a24799831fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page