How rodak123/wordle-arena works
Wordle Bot Arena runs a set of solver bots against a chosen solution, compares their results, and produces a visual and textual report, optionally delivered to Discord. The main entry points cover today’s puzzle, a random puzzle, or a specified word; a cron entry point schedules recurring runs. Solver implementations share a base class that validates guesses, evaluates feedback, and records timing and outcomes. The README also documents custom bots and the included solver variants. Links reflect shown calls and README capabilities; unsampled benchmark and scheduling internals are represented only where their paths are explicit.
Main entry points: daily.ts Daily run · random.ts Random run · word.ts Specified-word run · bots.ts Bot registry
Components 23
Arena Runs
- Daily run
src/daily.ts - Random run
src/random.ts - Specified-word run
src/word.ts - Daily scheduler
src/dailyCron.ts - Bot runner
src/core/WordleBotRunner.ts
Solver Bots
- Bot registry
src/bots/bots.ts - Solver lifecycle
src/core/bot/ASolverBot.ts - Random solver
src/bots/randomBot/RandomSolverBot.ts - Cheating solver
src/bots/cheatingBot/CheatingBot.ts - Horsle solver
src/bots/horsleBot/HorsleBot.ts - Pattern solver
src/bots/patternBot/PatternBot.ts - Lookup solver
src/bots/lookupTableBot/LookupTableBot.ts
Wordle Engine
- Puzzle and feedback
src/core/nytimes/Wordle.ts - Allowed word list
src/data/wordle-list.json
Results and Delivery
- Bot outcomes
src/core/bot/BotResult.ts - Text report
src/core/utils/ResultsReport.ts - Overview image
src/core/canvas/overviewImage/OverviewImage.ts - Image output
src/core/canvas/OutputImage.ts - Discord webhooks
src/core/discord/DiscordBot.ts
Benchmarks
- Benchmark run
src/benchmark.ts - Benchmark image
src/core/canvas/benchmarkImage/BenchmarkImage.ts
Other components
- Arena operator
- Discord
Connections 38
- Arena operator → Daily run: starts
README.md - Arena operator → Random run: starts
README.md - Arena operator → Specified-word run: starts
README.md - Daily scheduler → Daily run: schedules
src/dailyCron.ts - Daily run → Puzzle and feedback: loads daily
src/daily.ts - Random run → Puzzle and feedback: loads random
src/random.ts - Specified-word run → Puzzle and feedback: sets solution
src/word.ts - Daily run → Bot registry: creates bots
src/daily.ts - Random run → Bot registry: creates bots
src/random.ts - Specified-word run → Bot registry: creates bots
src/word.ts - Bot registry → Random solver: instantiates
src/bots/bots.ts - Bot registry → Cheating solver: instantiates
src/bots/bots.ts - Bot registry → Horsle solver: instantiates
src/bots/bots.ts - Bot registry → Pattern solver: instantiates
src/bots/bots.ts - Bot registry → Lookup solver: instantiates
src/bots/bots.ts - Daily run → Bot runner: runs bots
src/daily.ts - Random run → Bot runner: runs bots
src/random.ts - Specified-word run → Bot runner: runs bots
src/word.ts - Bot runner → Solver lifecycle: invokes solve
src/core/WordleBotRunner.ts - Solver lifecycle → Puzzle and feedback: validates and scores
src/core/bot/ASolverBot.ts - Solver lifecycle → Bot outcomes: builds outcome
src/core/bot/ASolverBot.ts - Puzzle and feedback → Allowed word list: loads words
src/core/nytimes/Wordle.ts - Bot runner → Daily run: provides results
src/daily.ts - Bot runner → Random run: provides results
src/random.ts - Bot runner → Specified-word run: provides results
src/word.ts - Daily run → Text report: generates report
src/daily.ts - Random run → Text report: generates report
src/random.ts - Specified-word run → Text report: generates report
src/word.ts - Daily run → Overview image: generates image
src/daily.ts - Random run → Overview image: generates image
src/random.ts - Specified-word run → Overview image: generates image
src/word.ts - Overview image → Image output: sets image
src/core/canvas/overviewImage/OverviewImage.ts - Daily run → Discord webhooks: sends report
src/daily.ts - Random run → Discord webhooks: sends report
src/random.ts - Specified-word run → Discord webhooks: sends report
src/word.ts - Discord webhooks → Discord: posts webhook
src/core/discord/DiscordBot.ts - Benchmark run → Benchmark image: generates benchmark
src/core/canvas/benchmarkImage/BenchmarkImage.ts - Benchmark image → Image output: uses output
src/core/canvas/benchmarkImage/BenchmarkImage.ts