Skip to main content

Crossy words: word matrix

Library that generates the word matrix in a way to have multiple words in one 5x5 matrix.

Available methods

getMatrix(lang="en")

Parametrs:

  • lang - language of words in the matrix. Values: "en", "ru". By default - "en".

Result:

  • a list of lists representing a 5x5 matrix
  • a dictionary of coordinates of specific word {word: [coordinates in matrix]}

printMatrix(matrix) - prints generated matrix

printWords(matrix) - prints generated words with coordinates of letters in the matrix

Installation

pip install crossywords

Example

import crossywords as cw

matrix, words = cw.getMatrix("en")  # getting a matrix and words in it

cw.printMatrix(matrix)  # printing matrix
print()
cw.printWords(words)  # printing words in it

Output:

t a t s o
r h l k b
s o w k t
g a n h n
e t h i a

think - [[4, 1], [4, 2], [4, 3], [3, 4], [2, 3]]
thank - [[2, 4], [3, 3], [4, 4], [3, 4], [2, 3]]
own - [[2, 1], [2, 2], [3, 2]]
show - [[2, 0], [1, 1], [2, 1], [2, 2]]
talk - [[0, 2], [0, 1], [1, 2], [1, 3]]
start - [[0, 3], [0, 2], [0, 1], [1, 0], [0, 0]]

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

crossywords-0.0.6.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

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

crossywords-0.0.6-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file crossywords-0.0.6.tar.gz.

File metadata

  • Download URL: crossywords-0.0.6.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for crossywords-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c554a1b443954f6df5f90787f4252bff540b887c85581c9d8c4e6077c823ab6a
MD5 a01f070e1015318f8b2060c744e720b7
BLAKE2b-256 16545340b14ecc106417af74559efcaa4bc9c53303eec5133b31c90a906b24c2

See more details on using hashes here.

File details

Details for the file crossywords-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: crossywords-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for crossywords-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1c6d364137be19e70c9cae777413d974f4d17eddbab82df911738967afaf75f3
MD5 0d2557816eb7ae52b7ffdfed905f3fe3
BLAKE2b-256 32f386ba3c230411c22478a2e901fd82d5c958746a3de3d045a4ac7865e33874

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Supported by

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