intficpy/thing_base.py
def implicitAddItemToChild(self, item, preposition, event="turn", **kwargs):
        """
        Try to interpret the player's instruction to add an item to this item, as an
        instruction to add an item to a *component* of this item.

        For example, we might try interpreting "put bead in night table" as an attempt
        to put the bead in the *drawer* of the night table.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition (on, in, under, etc.) to search
            for in the child items
        :type preposition: str
        """
        matching_children = [
            c for c in self.children if c.contains_preposition == preposition
        ]
        if not matching_children:
            return False
        success = matching_children[0].playerAddsItem(item, preposition)
        if success:
            return True

        Try to interpret the player's instruction to add an item to this item, as an
        instruction to add an item to a *component* of this item.

        For example, we might try interpreting "put bead in night table" as an attempt
        to put the bead in the *drawer* of the night table.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition (on, in, under, etc.) to search
            for in the child items
        :type preposition: str
        
Try to interpret the player's instruction to add an item to this item, as an
instruction to add an item to a *component* of this item.

For example, we might try interpreting "put bead in night table" as an attempt
to put the bead in the *drawer* of the night table.
Try to interpret the player ' s instruction to add an item to this item as an instruction to add an item to a * component * of this item . For example we might try interpreting " put bead in night table " as an attempt to put the bead in the * drawer * of the night table .
def implicitAddItemToChild(self, item, preposition, event="turn", **kwargs):
        matching_children = [
            c for c in self.children if c.contains_preposition == preposition
        ]
        if not matching_children:
            return False
        success = matching_children[0].playerAddsItem(item, preposition)
        if success:
            return True
def implicitAddItemToChild ( self , item , preposition , event = "turn" , ** kwargs ) : matching_children = [ c for c in self . children if c . contains_preposition == preposition ] if not matching_children : return False success = matching_children [ 0 ] . playerAddsItem ( item , preposition ) if success : return True
Try to interpret the player's instruction to add an item to this item, as an
instruction to add an item to a *component* of this item.
Try to interpret the player ' s instruction to add an item to this item as an instruction to add an item to a * component * of this item .
"""
        Try to interpret the player's instruction to add an item to this item, as an
        instruction to add an item to a *component* of this item.

        For example, we might try interpreting "put bead in night table" as an attempt
        to put the bead in the *drawer* of the night table.

        :param item: the item to attempt to add
        :type item: Thing
        :param preposition: the contains preposition (on, in, under, etc.) to search
            for in the child items
        :type preposition: str
        """
self
item
the item to attempt to add
the item to attempt to add
preposition
the contains preposition (on, in, under, etc.) to search
for in the child items
the contains preposition ( on in under etc . ) to search for in the child items
event