Skip to content

Releases: preritdas/wordle

Individual guessing and guess logging!

30 Mar 00:23
Compare
Choose a tag to compare

This package can now be properly used to power the backend of a Wordle game. Initially, the .run() method had to be used to play the game. It would open a console, request guesses as inputs, and print out responses. That's not a viable solution to power the backend of a package user's application or game.

The Wordle class has two new submethods: .send_guess() and .reset_guesses().

Instantiate an object with the answer and game options (dictionary, etc.). Then, send individual guesses and the method will return a response.

import wordle

# Instantiate a game object
game = wordle.Wordle(word = 'grape', real_words = True)

# Send your object a guess
response = game.send_guess('adieu')
# response = a d i e u

# Send an invalid guess
response = game.send_guess('yabadabadoo')
# response = "You can't guess a word with more than 5 letters."
# Note: invalid guesses don't count towards the guess log.

# Send a 7th guess (only 6 allowed with log_guess = True)
response = game.send_guess('seven')
# response = "Out of guesses."

More information on how to use this new feature is at the bottom of the read-me documentation.

Fully Functioning Backend

26 Mar 18:23
Compare
Choose a tag to compare

First fully developed release with tested, functioning backend logic. Working dictionary and automatic word-selection method. This release was created during wordle-python active version 2.1.4.