We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 76c158d commit ddd7175Copy full SHA for ddd7175
src/services/rat-service.ts
@@ -70,7 +70,7 @@ export const smell = async (userId: number, maze: Maze, position: Coordinate): P
70
71
// 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 = 5;
+ const radius = 10;
74
const distance = dijkstra(maze, position, remainingCheese, radius);
75
76
// Insert an action denoting the rat has smelled.
0 commit comments