+
Skip to content

alexreinking/wordle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The WordleBot

Created by Rachel Lawrence and Alex Reinking

Setup

Depends on Python 3.10+. Create a virtual environment:

$ python3.10 -m venv venv
$ . venv/bin/activate
$ python -m pip install -U pip setuptools
$ python -m pip install -r requirements.txt

Running

By default, running main.py will put you in an interactive mode where you play the game locally.

$ python main.py
>>>: apple
apple  🟥🟥🟥🟥🟨
>>>: tinge
apple  🟥🟥🟥🟥🟨
tinge  🟩🟥🟥🟥🟨
>>>: truck
apple  🟥🟥🟥🟥🟨
tinge  🟩🟥🟥🟥🟨
truck  🟩🟥🟥🟥🟥
>>>: tempo
apple  🟥🟥🟥🟥🟨
tinge  🟩🟥🟥🟥🟨
truck  🟩🟥🟥🟥🟥
tempo  🟩🟩🟥🟥🟥
>>>: teeth
apple  🟥🟥🟥🟥🟨
tinge  🟩🟥🟥🟥🟨
truck  🟩🟥🟥🟥🟥
tempo  🟩🟩🟥🟥🟥
teeth  🟩🟩🟨🟨🟥
>>>: teddy
apple  🟥🟥🟥🟥🟨
tinge  🟩🟥🟥🟥🟨
truck  🟩🟥🟥🟥🟥
tempo  🟩🟩🟥🟥🟥
teeth  🟩🟩🟨🟨🟥
teddy  🟩🟩🟩🟩🟩
Guesser won!

To solve the online wordle, override the Guesser to be the cpu and the Czar to be remote:

$ python main.py --guesser cpu --czar remote
hint for arose: x??xx
arose  🟥🟨🟨🟥🟥
hint for yourt: x*x?*
arose  🟥🟨🟨🟥🟥
yourt  🟥🟩🟥🟨🟩
hint for biros: ?x?*x
arose  🟥🟨🟨🟥🟥
yourt  🟥🟩🟥🟨🟩
biros  🟨🟥🟨🟩🟥
hint for robot: *****
arose  🟥🟨🟨🟥🟥
yourt  🟥🟩🟥🟨🟩
biros  🟨🟥🟨🟩🟥
robot  🟩🟩🟩🟩🟩
Guesser won!

Notice that when it asks for a hint for a guess, it expects one character per letter in the word, in the following format:

  • x - the letter is incorrect
  • ? - the letter appears in the word, but not in that spot
  • * - the letter is in the correct spot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载