webpro/wooordle

★ 5Forks 0TypeScriptGitHub ↗Compare

README

Wooordle

Game

Play at wooordle.webpro.nl

Local development:

pnpm wooordle

Advice

Local development:

pnpm advice:server
pnpm advice:client
  • Go to localhost:5173 for web UI
  • Or send image to http://localhost:8080/api/advice

Example requests:

curl -X POST http://localhost:8080/api/advice -H "Content-Type: multipart/form-data" -F "image=@./samples/wordle.jpeg"
curl -X POST http://localhost:8080/api/advice -H "Content-Type: multipart/form-data" -F "image=@./samples/woordle.jpeg"
curl -X POST http://localhost:8080/api/advice -H "Content-Type: multipart/form-data" -F "image=@./samples/wooordle.jpeg"

Example response:

{
  "analysisResult": {
    "guesses": [
      {
        "word": "salet",
        "result": [1, 0, 0, 0, 2]
      }
    ],
    "wordLength": 5,
    "detectedLanguages": ["nl", "en"],
    "bestWords": {
      "nl": ["worst", "borst", "dorst", "korst", "vorst"],
      "en": ["foist", "joist", "moist", "hoist", "worst"]
    }
  }
}

Example using an iPhone Shortcut (actived by "Double Back Tap"):

wordle-advice.mp4

Run simulations

Use Node.js v24:

node packages/core/src/simulations/solve-random-word.ts

Other available simulations:

node packages/core/src/simulations/find-best-words.ts
node packages/core/src/simulations/find-possible-words.ts
  • Runs 2315 games with English 5-letter words
  • Dutch and 6-letter word lists are also available

Algorithms

Contributors

webpro

Issues