bellerb / wordle_solver

Wordle solver using letter position probability in python 3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wordle Solver

Visits Badge Languages Top Languages

Description

The following is a program for playing Wordle in the console written in python3. When playing, the game will give you 3 options:

  • Test Solver [T]
  • Game Assist [A]
  • Play Game [P]

Test Solver

The test solver option can be selected by typing in a "T". This will run the solver for how ever many games you have set up in the main.py file. To change this change the following variable.

GAMES = 10 

Game Assist

The game assist option is a way to have it help you choose your words when playing on the actual game. To play type in the suggested words. The agent will then ask you for what the game returned as hints. The agent will be looking for a responce like "bbygb". For this the options are:

  • b = black/grey
  • y = yellow
  • g = green

Play Game

The play game option is a way to play wordle games in your console.

Launch Instructions

step 1: open your console
step 2: create a virtual enviroment
step 3: type the following command "pip install -r requirements.txt"
step 4: type the following command "cd [app directory]"
step 5: type the following command "python3 main.py"
step 6: type in the action you wish to perform.

Write Up

To get a better understanding of why the code is written this way check out my detailed write up:

Reference

About

Wordle solver using letter position probability in python 3

License:MIT License


Languages

Language:Python 100.0%