

splitext ( wordlist_filename ) + '-solution. Purple Culture : Chinese Word/Pinyin Search Puzzle Generator - Chinese Learning Business China Charms of China Chinese Arts and Crafts Books for Children. splitext ( wordlist_filename ) + '.svg' write_wordsearch_svg ( filename, grid, wordlist ) filename = os. Instructions are available at the bottom of this page. Words can be found in any direction (including diagonals) and can overlap each other. Once submitted, your puzzle will be instantly playable on-line as well as easily printed, so you can share it with friends. if grid : show_wordsearch_text ( grid, wordlist ) filename = os. Make your own word search game on any topic you like, simply by providing between 10 and 30 words. grid, solution = make_wordsearch ( nrows, ncols, wordlist, allow_backwards_words, mask ) # If we fitted the words to the grid, show it in text format and save SVG files # of the grid and its solution. allow_backwards_words = False # If using a mask, specify it by a key to the apply_mask dictionary. format ( max ( nrows, ncols ))) # This flag determines whether words can be fitted backwards into the grid # (which makes the puzzle a bit harder). Embark on the Word Maker word puzzle adventure where word games, word search or word connect games will enrich your vocabulary while also help you train your brain and improve your IQ. NMAX = 32 alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' def circle_mask ( grid ): """A circular mask to shape the grid.""" r2 = min ( ncols, nrows ) ** 2 // 4 cx, cy = ncols // 2, nrows // 2 for irow in range ( nrows ): for icol in range ( ncols ): if ( irow - cy ) ** 2 + ( icol - cx ) ** 2 > r2 : grid = '*' def squares_mask ( grid ): """A mask of overlapping squares to shape the grid.""" a = int ( 0.38 * min ( ncols, nrows )) cy = nrows // 2 cx = ncols // 2 for irow in range ( nrows ): for icol in range ( ncols ): if a cy + a : grid = '*' if a cx + a : grid = '*' def no_mask ( grid ): """The default, no mask.""" pass # A dictionary of masking functions, keyed by their name. It also allows you to create a word search puzzle with a hidden message. # make_wordsearch.py import os import sys import random from copy import deepcopy # Maximum number of rows and columns. This word search puzzle maker is the only one listed here which creates a solution page.
