Word Search Puzzle Generator
Project description
Word Search Puzzle Generator
Introduction
Generate a puzzle
All what you need is de define a list of words and provide the dimensions of the panel. Please make sure that the number and the length of the words fit the dimensions of the panel.
from word_search_puzzle.utils import display_panel
from word_search_puzzle.algorithms import create_panel
words = ['Cat', 'Bear', 'Tiger', 'Lion']
result = create_panel(height=5, width=5, words_value_list=words)
print('Attempts: {}'.format(result.get('attempts')))
print('Solution took: {} ms'.format(result.get('elapsed_time')))
display_panel(result.get('panel'))
# Output:
# Attempts: 2
# Solution took: 31 ms
#
# l w m e r
# i w c e x
# o v g a q
# n i n i t
# t b e a r
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
word-search-puzzle-1.2.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for word_search_puzzle-1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1533f93f6f5a324e9771d8a79d6d22fc0cea8c1a703b19bfc6fb4665533cadb2 |
|
MD5 | cbaa59623270169c50971e2f9e3fb0e6 |
|
BLAKE2b-256 | c954cc43c90502921325766cccc9031aa59c5a8339e789a8fd58d04eb3c09af6 |