From 9c55f50cbd77ba1a0ab23a5c41219cbfa79eafe4 Mon Sep 17 00:00:00 2001 From: Nick Le Large Date: Tue, 3 Dec 2024 16:22:13 +0100 Subject: [PATCH] Add missing line to solution of task 2 --- docs/tasks/2_extend_arbitration_graph.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/tasks/2_extend_arbitration_graph.md b/docs/tasks/2_extend_arbitration_graph.md index 83d0ac6..413cbf8 100644 --- a/docs/tasks/2_extend_arbitration_graph.md +++ b/docs/tasks/2_extend_arbitration_graph.md @@ -72,6 +72,7 @@ explicit PacmanAgent(const entt::Game& game) // Add the ChaseGhost behavior component to the priority arbitrator (before the AvoidGhost behavior component!) rootArbitrator_->addOption(chaseGhostBehavior_, PriorityArbitrator::Option::Flags::INTERRUPTABLE); rootArbitrator_->addOption(avoidGhostBehavior_, PriorityArbitrator::Option::Flags::INTERRUPTABLE); + rootArbitrator_->addOption(eatClosestDotBehavior_, PriorityArbitrator::Option::Flags::INTERRUPTABLE); rootArbitrator_->addOption(moveRandomlyBehavior_, PriorityArbitrator::Option::Flags::INTERRUPTABLE); } ```