Skip to content

Commit 89f05b5

Browse files
Fixed decorator image and text in BT basics
1 parent 5e4d965 commit 89f05b5

File tree

2 files changed

+119
-99
lines changed

2 files changed

+119
-99
lines changed

docs/learn-the-basics/BT_basics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ this node could be either:
122122

123123
The node __Inverter__ is a Decorator that inverts
124124
the result returned by its child; an Inverter followed by the node called
125-
__isDoorClosed__ is, therefore, equivalent to
125+
__isDoorOpen__ is, therefore, equivalent to
126126

127-
"Is the door open?".
127+
"Is the door closed?".
128128

129129
The node __Retry__ will repeat ticking the child up to __num_attempts__ times (5 in this case)
130130
if the child returns FAILURE.
@@ -137,8 +137,9 @@ __Apparently__, the branch on the left side means:
137137
But...
138138

139139
:::caution Find the BUG!
140+
The tree expects the door to be closed so it can attempt up to 5 times to open it.
140141
If __isDoorOpen__ returns FAILURE, we have the desired behavior.
141-
But if it returns SUCCESS, the left branch fails, and the entire Sequence
142+
But if it returns SUCCESS (i.e. the door is already open), the bottom-left branch fails, and the top-level Sequence
142143
is interrupted.
143144
:::
144145

docs/learn-the-basics/images/DecoratorEnterRoom.svg

Lines changed: 115 additions & 96 deletions
Loading

0 commit comments

Comments
 (0)