Giter Site home page Giter Site logo

connections-solver's Introduction

NYT Connections Solver

This project aims to play the NYT Connections Game using vectorized embeddings of words.

The idea is to use embedding similarity as a metric for how good a given 4x4 grouping of 16 words is. This metric is then used as a fitness function for a genetic algorithm to find the best grouping, which hopefully allows us to avoid having to evaluate all ~2.6 million possibilties.

Requirements

  • Gensim (pip install gensim)
    • You may need to downgrade scipy to a version below 1.13.0 for this to work.
  • DEAP (pip install deap)
  • numpy (pip install numpy)

Usage

  • The script is written to run by taking a list of words in a .txt file in the puzzles/ folder.
  • Each word in the file is separated by a newline. For an example, see 4-18-2024.txt.
  • Then, the script can be run by python solver.py [filename]. For example:
python solver.py 4-18-2024.txt

TODO

  • Add evaluation against actual solution

connections-solver's People

Contributors

k78ma avatar

Watchers

 avatar

Forkers

agishan

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.