Skip to content

Solves Wordle in your browser, using Rust & Yew WASM app

License

Notifications You must be signed in to change notification settings

Twister915/wordle-solver

Repository files navigation

W Joey's Wordle Solver

This is a Rust + Yew WASM web-app which implements an interactive Wordle solver, described originally by Grant Sanderson (3blue1brown)'s YouTube video on solving wordle with information theory.

It's running live on my site, at https://wordle.joey.sh where you can try it out. It's best viewed on a desktop, and works in recent versions of all major browsers.

screencap

The mathematics are described in code documentation, and the webpage is supposed to be styled like a notebook & as such also documents the mathematics/methodology.

Building

The site is built with trunk. It is recommended to run the setup.sh script to install the required tools.

You must have the following installed:

  • Rust (check out: rustup to get this working), and obviously a working cargo installation.
  • wasm32-unknown-unknown target for Rust (rustup target add wasm32-unknown-unknown)
  • wasm-opt which requires node.js
  • sass which can be installed from npm.

The setup.sh script only requires that cargo and npm be installed.

Trunk is capable of installing some (perhaps all) of the tools it depends on (like sass, wasm-opt, etc). However, I develop on an M1 Mac (in June 2022) and trunk does not correctly install required tools because the architecture is not supported. This is why I have created setup.sh. It is possible that simply installing trunk and trying to build will be sufficient to build this project.

The output of a successful build will be a set of static files in the dist/ directory. Serve these files from a webserver or cloud storage bucket, and play some Wordle!

About

Solves Wordle in your browser, using Rust & Yew WASM app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published