我有很多东西我想限制从安装通过特定的门。所以这把椅子太大/太重了,搬不动,但在大多数情况下可以从一个房间推到另一个房间。除非门很窄。我可能可以成功地编写特定的代码来处理特定的情况,但我想要通用地处理这种情况,这样我就可以有一些笨重的东西和狭窄的门。
下面的代码功能正常,但是第二个名词以"nothing"结束。我想用旅行方向的门的名字来回应"推椅s",并传达"这把椅子太笨重了,无法通过裂缝"的信息。有人知道我做错了什么或其他方法吗?
A thing can be bulky. A thing is usually not bulky.
A bulky thing is usually pushable between rooms.
A door can be narrow. A door is usually not narrow.
A bulky, enterable supporter called the chair is in room1.
There is a narrow door called the crack. It is south of room1.
Before going with a bulky thing through a narrow door:
say "[The noun] is way too bulky to fit through [the second noun]." instead;
您可以在规则序言中命名这些内容,并使用这些名称在规则中打印它们。
Before going with a bulky thing (called the cargo) through a narrow door (called the obstacle):
say "[The cargo] is way too bulky to fit through [the obstacle]." instead.