App-Greple-wordle

 view release on metacpan or  search on metacpan

README.md  view on Meta::CPAN

[![Actions Status](https://github.com/kaz-utashiro/greple-wordle/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/kaz-utashiro/greple-wordle/actions?workflow=test) [![MetaCPAN Release](https://badge.fury.io/pl/App-Greple-wordle.s...
# NAME

App::Greple::wordle - wordle module for greple

# SYNOPSIS

greple -Mwordle

# DESCRIPTION

App::Greple::wordle is a greple module that implements the Wordle game.
Answer correctness is checked by regular expression.

This module supports multiple word datasets. Use the **--data** option to
choose different word datasets such as the original Wordle word list
or the New York Times Wordle word list.

Rules are almost the same as the original game, but answers are different.
Use the **--compat** option to get answers compatible with the original game.

<div>
    <p><img width="750" src="https://raw.githubusercontent.com/kaz-utashiro/greple-wordle/main/images/screen-5.png">
</div>

# OPTIONS

- **--data**=_dataset_

    Choose the word dataset.  Default is `ORIGINAL`.

    Available datasets:

    - `ORIGINAL`

        The original word list from the initial Wordle game. This is the
        default dataset and contains the classic Wordle word list.

    - `NYT`

        The New York Times Wordle word list, which includes words used by NYT
        Wordle. This dataset is updated and may contain different words than
        the original.

    Dataset modules are dynamically loaded from `App::Greple::wordle::`
    namespace with uppercase dataset name.

- **--series**=#,  **-s**#
- **--compat**

    Choose a different answer series.  Default is 1.  Series zero is the same as
    the original game and option **--compat** is a shortcut for
    **--series=0**.  If it is not zero, the answer set is shuffled by
    pseudo-random numbers using the series number as an initial seed.

- **--index**=#, **-n**#

    Specify the answer index. The default index is calculated from days since
    2021/06/19.  If the value is negative, you can get yesterday's
    question by specifying -1.

    If the specified index exceeds the available answer list, a random
    answer will be selected from the dataset with a warning message.

    Answer for option **-s0n0** with `ORIGINAL` dataset is `cigar`.

- **--**\[**no-**\]**result**

    Show result when successful.  Default is true.

- **--random**

    Generate a random index every time.

- **--trial**=#, **-x**=#

    Set the trial count.  Default is 6.

# COMMANDS

A five-letter word is processed as an answer.  Other input is taken
as a command.

- **h**, **hint**

    List possible words.

- **u**, **uniq**

    List possible words made of unique characters.

- **=**_chars_

    If starting with equal (`=`), list words that include all _chars_.

- **!**_chars_

    If starting with exclamation mark (`!`), list words that do not
    include any of _chars_.

- _regex_



( run in 1.461 second using v1.01-cache-2.11-cpan-99c4e6809bf )