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.2.1.tar.gz (2.9 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.2.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: motsmeles-2.2.1.tar.gz
  • Upload date:
  • Size: 2.9 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.2.1.tar.gz
Algorithm Hash digest
SHA256 af5bb16761964739d7966034a60246d96517d7ae87874a3225cddb54a267aa35
MD5 a51d5bf85dee9bdac3ce7dc4d6a7a36c
BLAKE2b-256 1365035e0fdcff3370bfc48e0ff25837bb0f34d00c5b1fbbfb60d6681538c845

See more details on using hashes here.

File details

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

File metadata

  • Download URL: motsmeles-2.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f0f4af5854b48151c42c3a4dcca81c283ccca71fb0e36fec8fcd060833d0c693
MD5 1bb020cf30d7c4cf019b92bcfe74dcc0
BLAKE2b-256 0cf57a9d027602c70c8e83324e6b572fc5785265f60bfdb65e2d547ef2d6167d

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