Skip to content

ngparker/squareword_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

squareword_gen

This is an experiment to try generatating valid NxN squares of words, where both columns and row are words from a given dictionary.

It was inspired by the squareword.com game, and an algorithm from @annalee

It outputs things like this:

WordSquare 17 from word 4252/5000: double-word-square, unique
  gnomes
  repent
  outage
  origin
  moment
  snares

Usage

usage: squareword_gen.py [-h] [--freq_csv_file FREQ_CSV_FILE]
                         [--scrabble_words_file SCRABBLE_WORDS_FILE]
                         [--top_n TOP_N] [--word_len WORD_LEN]
                         [--double_squares_only] [--log_details]
                         [--just_benchmark]

optional arguments:
  -h, --help            show this help message and exit
  --freq_csv_file FREQ_CSV_FILE
                        CSV file where the first row is words, sorted in most
                        popular first
  --scrabble_words_file SCRABBLE_WORDS_FILE
                        Text file of valid words to use
  --top_n TOP_N         Cutoff for N most popular words to use
  --word_len WORD_LEN   Len of words to use
  --double_squares_only
                        Print only valid double squares
  --log_details
  --just_benchmark

TODO

Attribution:

About

Experiment with generating NxN word squares

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors