小编Wea*_*ver的帖子

算法生成Zebra/Einstein拼图

首先,我不一定要找一个完整的算法,我可以复制和粘贴,然后称它为一天.任何"一般方法"解决方案对我来说都没问题!

这整个帖子都受到工作缓慢的一天的刺激,并且在这个网站上磕磕绊绊,无法弄清楚他们是如何实现他们的发电机的.

问题

对于那些不知道的人来说,"斑马拼图"或"爱因斯坦之谜"是一个着名的逻辑谜题,你可能已经遇到过.

完整的wiki文章在这里,但我会发布相关内容.

There are five houses.
The Englishman lives in the red house.
The Spaniard owns the dog.
Coffee is drunk in the green house.
The Ukrainian drinks tea.
The green house is immediately to the right of the ivory house.
The Old Gold smoker owns snails.
Kools are smoked in the yellow house.
Milk is drunk in the middle house.
The Norwegian lives in the first house.
The man who smokes Chesterfields …
Run Code Online (Sandbox Code Playgroud)

algorithm zebra-puzzle

17
推荐指数
1
解决办法
7865
查看次数

标签 统计

algorithm ×1

zebra-puzzle ×1