Learn R Programming

wordler

An R implementation of the popular WORDLE game.

Gameplay

To start a game, run the following R code in an interactive session.

library(wordler)
play_wordler()

The introductory instructions are displayed.

You must then attempt to correctly guess a five-letter word in (at most) six attempts.

After each guess, the letters are coloured to indicate how well the guess matches the target word.

Green letters are in the word and in the right position (but may be repeated elsewhere). Yellow letters are present (at least once) somewhere in the target word.

Each guess must be a valid word.

Installation

You can install directly from github using the devtools R package.

# install.packages("devtools")
devtools::install_github("DavidASmith/wordler")

Copy Link

Version

Install

install.packages('wordler')

Monthly Downloads

166

Version

0.3.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

David Smith

Last Published

February 1st, 2022

Functions in wordler (0.3.1)

update_letters_known_not_in_word

Establish which letters are known to _not_ be in the target word
wordle_answers

All words used as potential answers by the original WORDLE game.
count_freqs

Get counts of each letter in the target
qdap_dict

All five-letter words from the Nettalk Corpus Syllable Data Set.
ubuntu_dict

All five-letter words from the Ubuntu dictionary.
wordle_allowed

All words used to validate guesses by the original WORDLE game.
update_letters_known_in_word

Establish which letters are known to be in the target word
update_letters_known_in_position

Establish which letters are known to be in the correct position in the target word
is_guess_correct

Establish if guess is correct and set game state accordingly
print.wordler

Prints a wordler game to the console.
have_a_guess

Submit a guess word to a wordler game object
assess_guess

Assess a guess against the target word
new_wordler

Constructs a new object of class "wordler"
play_wordler

Play a game of WORDLE in the console
print_instructions

Prints instructions to play a wordler game in the console
is.wordler

Detects wordler objects
keyboards

Keyboard layouts for printing a wordler game at the console.