Giter Site home page Giter Site logo

wordle's Introduction

wordle

Scripts for Wordle, a game about guessing a five-letter word: https://www.powerlanguage.co.uk/wordle/

Dependencies

numpy, pandas, tqdm

Code

expected_green_yellow_guess.py: Given a CSV file of allowed guesses and possible answers, calculate the average number of green and yellow tiles a guess yields on the possible answers. The algorithm scores a guess against all possible answers, and:

  1. finds letter and position matches between the two words and increments the green-tile counter,
  2. removes these green letters from both the guess and the answer,
  3. for each remaining letter in the guess, checks to see if it is in the remaining letters of the answer, incrementing the yellow-tile counter if so,
  4. removes this letter from both the guess and the answer,
  5. divides the green and yellow counters by the number of possible answers

to yield the expected number of green and yellow tiles of a guess.

rank_wordle.py: Ranks best and worst words, according so schemes where green tiles are worth n times the point-value of yellow tiles.

Outputs

expected_green_yellow.csv is the output of expected_green_yellow_guess.py, if ran on wordle-allowed-guesses.csv and wordle-answers-alphabetical.csv.

weighted_scores.csv is the output of rank_wordle.py, if ran on expected_green_yellow.csv.

wordle's People

Contributors

vinsfan368 avatar

Watchers

 avatar

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.