Giter Site home page Giter Site logo

lelserslasers / newyorktimeswordgamehelpers Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 5.75 MB

A tool to help solve the word games on The New York Times website (Wordle and Spelling Bee)!

Home Page: https://lelserslasers.itch.io/ny-times-word-game-helpers

Python 99.74% Rust 0.26%
helper solver word-game wordle newyorktimes spelling-bee

newyorktimeswordgamehelpers's Introduction

New York Times Word Game Helpers

CLI tools that helps you solve the word games on The New York Times website!

Wordle

This tool works with The New York Times offical Wordle but many other wordles as well such as this one. It works with any size wordle, as long as the standard rules for the game apply (like how the yellow, green, etc, letters are scored).

There are two versions of the tool available:

  1. wordle.py - this one is very good and quick, but sometimes it will over prioritize getting the correct word rather than guaranteeing that it will get the word within 6 guesses
  2. wordle2.py - this might not work at all, and takes like 2 decades to run. It tries to maximize the entropy of a guess, but the end game strat is kinda bad

Example of using the tool to solve the offical Wordle in 2 guesses for 5/25/22: Helper Tool for 5/25/22

A more "reasonable" example of the tool solving offical Wordle in 4 guesses for 5/28/22: Helper Tool for 5/28/22

The tool works on any site that uses the normal Wordle rules for the green/yellow/dark letters (site: http://64.98.192.13:8000/wordle/) Helper Tool for other sites

It also works on any sized wordle (site: http://lelserslasers.pythonanywhere.com/wordle/) Helper Tool with different sizes

wordle_solver

Multithreaded brute-force Rust implementation that looks for the best starting word. It is fairly slow and it runs in O(n^3) time. It has no end game strat and only works for the the first word. Successor to wordle2.py.

wordle_solver output

Top 20 best starting words based on the common words
Worst to best, ranked based on expected bits of information

riles - 6.03
hares - 6.04
teals - 6.05
roles - 6.06
rites - 6.07
mares - 6.08
races - 6.08
reals - 6.09
lanes - 6.11
soare - 6.11
saner - 6.12
pares - 6.15
dares - 6.17
tires - 6.18
tries - 6.19
tears - 6.19
cares - 6.20
tales - 6.21
rates - 6.28
tares - 6.38

Top 20 best starting words based on all the words
Worst to best, ranked based on expected bits of information
riles - 5.91
rites - 5.92
treas - 5.92
aloes - 5.94
slate - 5.94
lanes - 5.95
roles - 5.96
pares - 5.97
teals - 5.99
cares - 5.99
saner - 5.99
dares - 5.99
tries - 6.00
soare - 6.01
reals - 6.01
tires - 6.02
tears - 6.06
tales - 6.10
rates - 6.12
tares - 6.21

Spelling Bee

This tool works with The New York Times offical Spelling Bee or any games that use similar rules for guessing words. To run: simply run spellingbee.py!

Note: no screenshots because to fully solve a daily spelling bee you need to subscribe to the New York Times.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.