TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Building a Crossword Puzzle Generator with JavaScript

42 点作者 maynman大约 5 年前

3 条评论

garaetjjte大约 5 年前
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 未加载
impostervt大约 5 年前
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 未加载
apocalyptic0n3大约 5 年前
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 未加载