Can you solve the giant spider riddle Dan Finkel

Once every century, the world’s greatest
spiders gather to compete

in a series of grueling games.

The winner will become
the next arachnomonarch,

able to command all the world’s spiders
to their will.

That day is today, and for the first time,

you’re casting your name into the ring.

From Anansi to Arachne to Aragog,

all of the titans of the
spider world are here,

and at first, no one even notices
itsy-bitsy you.

But after wowing the crowd
with your web design

and sticking it to the competition
in the long-distance sling,

you’ve qualified for the finals.

Now all that remains is to face off
against the reigning champion,

Queen Shelob,

on the Whirled Wide Web,
and win the title from her.

The web stretches over a large chasm,

with intersecting strands coming
to a single point on the other side.

Moving across each strand
requires a careful dash,

and you must keep going until
you stop at the next hub

where two strands cross.

By ancient spider code, only one
competitor may traverse the web at a time.

You must take turns, moving from one
intersection to an adjacent one.

No one may spin new paths
into existence or skip turns.

You begin two spaces from Shelob,
and to win,

you must catch her by your tenth move.

Can you attain the mantle
of spider supremacy?

Pause here to figure it out for yourself.
Answer in 3

Answer in 2

Answer in 1

It’s tempting to trap Shelob in a corner,
but doing so is surprisingly tricky.

The layout of the web
is such that every move you make,

Shelob can get to another intersection
two away from you.

So even if you were to drive her
into a corner, she’d escape it easily.

There are no dead ends,

so there’s never a situation where she’d
be forced to move to your space.

However, there is this point up here
where all the strands converge.

It’s easy to see that it’s important,

but the challenge is figuring out
exactly what to do with it.

There’s a clever way of re-visualizing
the problem:

try coloring every intersection
one of two colors—

say red and blue—

where the same color never borders itself.

What you get is a checkerboard pattern,

then one space at the point
which you can’t make either color.

At the beginning of the game,
every time you move to red,

Shelob will be on blue,

and every time you move to blue,
Shelob will be on red.

In other words, unless something changes,

you can never move onto the same
intersection as her.

And that’s where the point comes in.

As indicated by its unique color, it’s the
one place you can break the pattern

and change the rhythm of moves.

So you should waste
no time in getting up there.

Shelob could now be in any one
of these red spaces,

and you have at most 6 moves
left to catch her.

But thanks to the colors we’ve added,

we can now focus on the one thing
that matters the most:

changing the color pattern.

Shelob is on red, so you should move
onto red on the second or fourth strand.

Now, Shelob can never move to any
of the spots neighboring you,

giving you a kind of net
to use to catch her.

You may have luck choosing your moves
through intuition at this point.

But if you want to get
algorithmic about it,

you could track how far away she is
horizontally and vertically,

as two numbers.

On your move,
shrink the larger of the two,

and no matter which direction she runs,
she’ll have to hit an edge.

Eventually, you’ll have backed her
into one of the two corners

and catch up to her
at the last possible moment.

You snatch the ceremonial sash
from your opponent

and wrap it around yourself.

You are now the Spider Supreme,

leader of all the world’s
eight-legged wonders.

Just remember— with great spider power
comes great spider responsibility.

每一个世纪,世界上最伟大的
蜘蛛都会聚集在一起,

参加一系列艰苦的比赛。

获胜者将
成为下一个蜘蛛君主,

能够按照自己的意愿指挥世界上所有的蜘蛛

那一天就是今天,你第一次

将你的名字投进戒指。

从 Anansi 到 Arachne 到 Aragog,

蜘蛛世界的所有泰坦都在这里

,一开始,甚至没有人注意到
它的小家伙。

但是,在
您的网页设计让观众赞叹不已

并坚持
参加长距离吊索比赛后,

您就获得了进入决赛的资格。

现在剩下的就是在 Whirled Wide Web 上
与卫冕冠军

Shelob 女王对峙,

并从她手中夺取冠军头衔。

网延伸到一个大裂缝上

,相交的股线
在另一边到达一个点。

穿过每条线
需要小心冲刺,

并且您必须继续前进,
直到停在两条线交叉的下一个枢纽

处。

根据古老的蜘蛛代码,一次只能有一个
竞争者穿越网络。

您必须轮流从一个
十字路口移动到相邻的十字路口。

没有人可以旋转新
路径或跳过转弯。

你从 Shelob 开始两格
,为了获胜,

你必须在第十步时抓住她。

你能获得
蜘蛛霸权的外衣吗?

在这里停下来自己弄清楚。
回答 3

回答 2

回答 1

将 Shelob 困在角落里很诱人,
但这样做非常棘手。

网络的布局
是这样的,你的每一个动作,

Shelob 都可以到达
离你两个距离的另一个十字路口。

所以即使你把她
逼到角落里,她也很容易逃脱。

没有死胡同,

所以永远不会出现
她被迫搬到你的空间的情况。

然而,这里有一个点
,所有股线都汇合在一起。

很容易看出它很重要,

但挑战在于
弄清楚如何处理它。

有一种重新可视化问题的巧妙方法

尝试
用两种颜色(

例如红色和蓝色)

中的每个交叉点着色,其中相同的颜色永远不会与自身相邻。

你得到的是一个棋盘格图案,

然后
在你不能制作任何一种颜色的地方有一个空格。

游戏开始时,
每次移动到红色时,

Shelob 都会显示蓝色

,每次移动到蓝色时,
Shelob 都会显示红色。

换句话说,除非有什么变化,否则

你永远不能和她走到同一个
路口。

这就是重点所在。

正如其独特的颜色所表明的那样,这
是您可以打破模式

并改变动作节奏的地方。

所以你不应该
浪费时间爬上去。

Shelob 现在可以在这些红色空间中的任何一个
中,

并且您最多还有 6 步
可以抓住她。

但是由于我们添加了颜色,

我们现在可以专注于
最重要的一件事:

更改颜色模式。

Shelob 是红色的,所以你应该
在第二或第四链上移动到红色。

现在,Shelob 永远无法移动到
您附近的任何地点,

从而为您提供了一种
可以用来捕捉她的网。 在这一点上,

你可能会幸运地通过直觉选择你的动作

但是,如果您想
了解它的算法,

您可以跟踪她在
水平和垂直方向上的距离,

作为两个数字。

在你的移动中,
缩小两者中较大的一个

,无论她向哪个方向跑,
她都必须击中边缘。

最终,你会支持她
进入两个角落之一,


在最后一刻赶上她。

你从对手手中夺走礼仪腰带

并将其缠绕在自己身上。

你现在是蜘蛛至尊,

世界
八足奇迹的领导者。

请记住——强大的蜘蛛力量
伴随着巨大的蜘蛛责任。