Skip to content

Commit

Permalink
Remove Task 3: Even more behavior components
Browse files Browse the repository at this point in the history
  • Loading branch information
orzechow committed Nov 19, 2024
1 parent 625accd commit 199208b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 86 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ It's based on this demo and guides you through all important concepts:
0. [Introduction – start here!](./docs/Tutorial.md)
1. [Implement your first behavior component](./docs/tasks/1_implement_behavior_component.md)
2. [Extend the arbitration graph with that behavior](./docs/tasks/2_extend_arbitration_graph.md)
3. [Add even more behavior components](./docs/tasks/3_add_more_behaviors.md)
4. [Learn about nested arbitration graphs](./docs/tasks/4_nested_arbitrators.md)
5. [Arbitrate based on predicted utility](./docs/tasks/5_cost_arbitration.md)
6. [Verify commands and add a fallback strategy](./docs/tasks/6_verification.md)
3. [Learn about nested arbitration graphs](./docs/tasks/4_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./docs/tasks/5_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./docs/tasks/6_verification.md)


## Installation
Expand Down
7 changes: 3 additions & 4 deletions docs/Tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ With the basics out of the way, let's work through the tasks.

1. [Implement your first behavior component](./tasks/1_implement_behavior_component.md)
2. [Extend the arbitration graph with that behavior](./tasks/2_extend_arbitration_graph.md)
3. [Add even more behavior components](./tasks/3_add_more_behaviors.md)
4. [Learn about nested arbitration graphs](./tasks/4_nested_arbitrators.md)
5. [Arbitrate based on predicted utility](./tasks/5_cost_arbitration.md)
6. [Verify commands and add a fallback strategy](./tasks/6_verification.md)
3. [Learn about nested arbitration graphs](./docs/tasks/4_nested_arbitrators.md)
4. [Arbitrate based on predicted utility](./docs/tasks/5_cost_arbitration.md)
5. [Verify commands and add a fallback strategy](./docs/tasks/6_verification.md)
5 changes: 3 additions & 2 deletions docs/tasks/1_implement_behavior_component.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Before we start building our arbitration graph, we want to take a closer look in
Don't worry, most of the behavior components are already implemented for you
but we want to make sure you have an idea of how they work.

With the current state of the arbitration graph, PacMan will just move around randomly until a ghost gets too close.
That's great and all but if we ate a power pellet, we want to chase the ghosts to eat them for extra points.
With the current state of the arbitration graph, PacMan will just move around and eat dots until a ghost gets too close.
That's great and all but if we ate a power pellet, we want to take advantage and chase the ghosts to eat them for extra points!

To do this, we need to implement the `ChaseGhost` behavior component.
It essentially does the exact opposite of the `AvoidGhost` behavior component
Expand All @@ -33,6 +33,7 @@ Finish the implementation of the `checkInvocationCondition()` and `getCommand()`

## Instructions

- Build and run the game, take a look at the arbitration graph and observe how PacMan behaves.
- Run the unit tests and note that the `ChaseGhost` `scheckInvocationConditionFalse` test is failing
- Open the implementation of the `ChaseGhost` behavior component in `src/chase_ghost_behavior.cpp`.
- The `checkInvocationCondition()` function is already implemented but does not check for the presence of a ghost.
Expand Down
2 changes: 1 addition & 1 deletion docs/tasks/2_extend_arbitration_graph.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ explicit PacmanAgent(const entt::Game& game)
|
[Tutorial Home](../Tutorial.md)
|
[Next task →](3_add_more_behaviors.md)
[Next task →](4_nested_arbitrators.md)
74 changes: 0 additions & 74 deletions docs/tasks/3_add_more_behaviors.md

This file was deleted.

2 changes: 1 addition & 1 deletion docs/tasks/4_nested_arbitrators.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ explicit PacmanAgent(const entt::Game& game)
---
[← Previous task](3_add_more_behaviors.md)
[← Previous task](2_extend_arbitration_graph.md)
|
[Tutorial Home](../Tutorial.md)
|
Expand Down

0 comments on commit 199208b

Please sign in to comment.