Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.38 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.38 KB

Objective

From a master English word list, filter to only keep words that:

  • Are exactly 5 characters long.
  • All characters are lower-case. This eliminates people and place names that wouldn't be considered in a game such as wordle.

The master word file was copied from a gist file.

Installation

This has been tested on an iMac running MacOS Monterey. These instructions will largely work for Linux; on Windows, YMMV.

  1. Clone this repo to your PureScript projects folder
    git clone https://github.com/oldfartdeveloper/wordle-generate-word-list.git
  2. Follow the GitHub instructions. There are simple examples of how to perform the most important PureScript development operations.
  3. cd into the new repo's directory.
  4. spago build. It should build successfully

Running the Application

To generate the text file containing the 5-letter words:

  1. Be sure you are in the project directory.
  2. Run spago run
  3. Verify that the file has been generated as doc/words.txt. It should have the current time stamp.

If you haven't already, clone and install the wordle-solver repo which will use this project's generated file.