TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Crossword Puzzle Generator with JavaScript

42 pointsby maynmanabout 5 years ago

3 comments

garaetjjteabout 5 years ago
From quick glance it picks random matching word and goes with that, never reverting that decision. This allows only for generating rather low-density crosswords, where much of the board is empty.<p>Keeping a &quot;stack&quot; of crosswords, each one with one word added, iterating through possible words, and when nothing matches dropping &quot;stack frame&quot; and retrying with another word on previous level, would allow to generate much denser crosswords.
评论 #23115665 未加载
impostervtabout 5 years ago
Working on an activity book for kids and was contemplating writing something like this, and then realized it was definitely non-trivial. Thanks for the work!
评论 #23114001 未加载
apocalyptic0n3about 5 years ago
This looks like a fun project. I might try building one myself this weekend (or doing a word search, maybe). Thanks for the idea
评论 #23115542 未加载