Skip to content

Commit 0f4aa95

Browse files
committed
Update to radius of 5
1 parent 73cce54 commit 0f4aa95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/services/rat-service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export const smell = async (userId: number, maze: Maze, position: Coordinate): P
6969
);
7070

7171
// Calculates the distance to the closest uneaten cheese.
72-
// A rat has a smell radius of 10 cells. The distance is the number of steps to the nearest cheese.
73-
const radius = 10;
72+
// A rat has a smell radius of 5 cells. The distance is the number of steps to the nearest cheese.
73+
const radius = 5;
7474
const distance = dijkstra(maze, position, remainingCheese, radius);
7575

7676
// Insert an action denoting the rat has smelled.

0 commit comments

Comments
 (0)