reduce train max hops

This commit is contained in:
scamiv
2025-11-22 21:28:26 +01:00
parent 38abed125d
commit 34e511deb3
+2 -2
View File
@@ -35,8 +35,8 @@ export class TrainExecution implements Execution {
// Local greedy routing properties
private recentStations: TrainStation[] = []; // Recently visited stations (for loop prevention)
private maxHops: number = 50; // Maximum hops before giving up
private recentMemorySize: number = 50; // How many recent stations to remember
private maxHops: number = 25; // Maximum hops before giving up
private recentMemorySize: number = 25; // How many recent stations to remember
constructor(
private railNetwork: RailNetwork,