国外比较流行的解密游戏 Crossword ,Wordle 大家应该都听过,都是纽约时报出的,没错新媒体居然有种东西。。
最近 NYT 又上线了一个新的小游戏 —— Pips Game ,玩法有点类似数独 + 多米诺拼图的结合。
不过 NYT 是一天一题,没有历史记录,想做其他题也做不了,我用 cursor 写了个算法实现了生成了题目。核心其实是数据结构定义,分享一下。这样定义就能知道如何渲染棋盘,和有哪些骰子
{ id: 0, constructors: "Generated", difficulty: "easy", dominoes: [[5, 6], [4, 6], [2, 6], [4, 5]], regions: [ { indices: [[1, 1], [0, 1], [1, 2]], type: "not_equal" }, { indices: [[1, 5], [1, 4]], type: "sum", target: 9 }, { indices: [[0, 0]], type: "sum", target: 6 }, { indices: [[1, 3]], type: "empty" }, { indices: [[2, 1]], type: "empty" } ] },
里面提供了 easy / medium / hard 三个难度的更多题库,感兴趣的朋友可以试试
1
ern 2 天前
Wordle 不是 NYT 出的,只是它收购的
|
![]() |
2
Ariake265 2 天前
每次听 NYT 旗下的播客广告,讲到“请 NYT 推出家庭共享吧,我和我丈夫天天抢着在同一个账户上玩 wordle 真的太痛苦了”都有点难绷
|
![]() |
3
shd 1 天前
游戏详情页 500
|