8000 GitHub - evans-dan/yawi: Yet Another Wordle Implementation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

evans-dan/yawi

Repository files navigation

yawi - Yet Another Wordle Implementation

Overview

Like 63% of the devs on the planet, I decided to make a wordle clone. This is the base class for the game itself.

Version 0.3 - base game with hard mode; unit tests; a single agent

Release Notes

  • v0.3 (2022-03-07)
    • implemented hard mode, where all revealed letters must be used in subsequent guesses
    • added unittest entries for hard mode
  • v0.2 (2022-03-01)
    • modified the Wordle_Game class to hide some status message unless debug is True
    • created Wordle_Benchmark class, and added it to the integration testing in test.py. This will be used in later work to compare two Agents.
  • v0.1 (2022-02-24)
    • modification of the base Wordle_Game class to hide some internal functions and attributes.
    • Addition of the base Wordle_Agent class as well as the first Agent built off of it, Wordle_Agent_LetterFreq.
    • Cleaned up some of the docstrings for classes and functions.

Usage Example

# This will play one game of yawi

from Wordle_Game import Wordle_Game
wg = Wordle_Game()

from Wordle_Agent import Wordle_Agent
wa = Wordle_Agent(wg)

from Wordle_Agent_LetterFreq import Wordle_Agent_LetterFreq
walf = Wordle_Agent_LetterFreq(wg)

walf.play(wg)

# this will perform benchmarking of an agent (default is a Wordle_Game, with Wordle_Agent_LetterFreq)
from Wordle_Benchmark import Wordle_Benchmark
wb = Wordle_Benchmark()
wb.start_benchmark()

Future Development

  • A "tournament" class that will allow for a series of games to be played by the same agent; pit two (or more?) agents head to head on the same word; or both.
  • More and/or improved Agents that will play games with various approaches.
    • better first-word choice
    • position-aware letter frequency
    • di/tri-gram frequency
    • an ML-based approach that learns the rules

About

Yet Another Wordle Implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

0