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.0.tar.gz (3.3 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.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: motsmeles-2.2.0.tar.gz
  • Upload date:
  • Size: 3.3 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.0.tar.gz
Algorithm Hash digest
SHA256 ec69dce01ff1cdcc2265fd4b8fdad352c8ec364e23179ba9662cf64eb7b4f5b7
MD5 54c34fc26f1e0a29c4825a59dfff5311
BLAKE2b-256 00756cc80087280f197dc7c6721e708bb52512436f5bf2fea9f6f691706289b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: motsmeles-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96ef17aa9adbe6476ee0cf351e6502f5e4563d1d3bf236b4905bcf700c08a3c8
MD5 fa4f74ee03dac26fbfe1e1837ec1bb2e
BLAKE2b-256 6a62cb9aa856c41dd4915825ac5162675d37810c2c22793b5f96e1804ca0db7e

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