Skip to content

Commit ddd7175

Browse files
committed
Change rat smell radius
1 parent 76c158d commit ddd7175

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/rat-service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const smell = async (userId: number, maze: Maze, position: Coordinate): P
7070

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

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

0 commit comments

Comments
 (0)