Skip to content

pierreTklein/wordle_game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordle Game

This is a python implementation of wordle, which uses the same set of available words as the hit game, Wordle.

Play the game manually

python3 src/wordle_main.py --strategy=human

Play the game using an AI

python3 src/wordle_main.py --strategy=(random|similar_words)

Implement an algorithm to solve it

So you want to write an algorithm that can solve Wordle in as few turns as possible?

  1. Create a new class that inherits from BaseStrategy.
  2. Change the implementation of the get_guess() function, as well as the make_guess() function.
  3. Update wordle_main to import the new Strategy class that you created.
  4. Run it: python3 src/wordle_main.py --stragey={your class}

I have taken the liberty of implementing & wiring together SimilarWordsStrategy to show how you can wire your own algorithm in.

About

Python implementation of the world-famous wordle game.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages