Company
Date Published
Author
Michael Hunger
Word count
2031
Language
English
Hacker News points
None

Summary

The text discusses a project to represent the Wordle word game as a graph in Neo4j, a graph database. The goal is to solve the puzzle using Cypher queries. Two models are presented: Model 1 represents characters at positions with dedicated nodes labeled CharAtPos, and Model 2 represents just the 26 characters and puts the position onto the relationship either as a property or as the rel-type. The text also explores follow frequencies, which can help in finding missing letters, and implements a generic solver that takes an structured input and includes or excludes letters based on their positions. A script is provided to play Wordle in the terminal by sending Cypher queries to a wordle database.