{"_id":"@aeon-games/freight-train","_rev":"2-540185d8c00eb41fafb945d059947792","name":"@aeon-games/freight-train","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@aeon-games/freight-train","version":"5.0.0","_id":"@aeon-games/freight-train@5.0.0","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"dist":{"shasum":"1dec91cecc5a93a522df250e0c6b7c8f00a9243d","tarball":"https://registry.npmjs.org/@aeon-games/freight-train/-/freight-train-5.0.0.tgz","fileCount":9,"integrity":"sha512-EEeqfDj7wj06kZoqEs2tRLLjdJZbMSq8D17atf/NEFqzkR4G6Rz0nTPvnW4DHcQ3SwvMgu5/IIyoBrubUhycZQ==","signatures":[{"sig":"MEUCIQDG+xg5oN+QESu9yPCBJeuxD2DR1BpfVKSVOWN3v5a0rgIgVRBbqeoOC1LE/M49r2wnNsUnqLZqlb/7ITepdAT2geA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":85959},"main":"src/index.tsx","gitHead":"ae54b0df6ac98ed86b037accafa16cf218dda541","scripts":{"forge:deploy":"bun ../../../apps/aeon-forge/src/cli/cli.tsx deploy . --oneshot"},"_npmUser":{"name":"buley","email":"buley@outlook.com"},"_npmVersion":"11.8.0","description":"Freight Train","directories":{},"_nodeVersion":"25.5.0","dependencies":{"react":"^19.0.0","@aeon-games/engine":"workspace:*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/freight-train_5.0.0_1773156571894_0.5957915414102564","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated and no longer supported. Do not use."}},"time":{"created":"2026-03-10T15:29:31.547Z","modified":"2026-03-27T20:35:13.075Z","5.0.0":"2026-03-10T15:29:32.031Z"},"description":"Freight Train","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"readme":"# Freight Train\n\n## Purpose\n**Freight Train** is a strategic logistics and rail-building game within the Aeon Games ecosystem. Players are tasked with building a hexagonal rail network to transport various cargo types (Coal, Iron, Wood, Gold, Food) from source locations to their respective destinations. The game challenges players to optimize their budget while navigating terrain obstacles like mountains and water.\n\n## Key Features\n- **Route Optimization**: Players must connect specific sources and destinations using limited funds.\n- **Terrain Variety**: Different terrain types (plains, forest, mountains, water) affect construction costs or accessibility.\n- **Budget Management**: Strategic spending of the initial $300 budget to complete as many high-reward routes as possible.\n\n## Key Files\n- `src/index.tsx`: Core game implementation, route generation logic, and the train simulation loop.\n- `package.json`: Package metadata and dependencies.\n- `tsconfig.json`: TypeScript configuration.\n\n## Usage\nThe `FreightTrain` component is used within the Aeon Games platform:\n\n```tsx\nimport FreightTrain from '@aeon-games/freight-train';\n\n<FreightTrain \n  gameId=\"rail-network-challenge\"\n  seed={12345}\n  onComplete={...}\n/>\n```\n\n## Mechanics\n- **Phases**:\n    - `build`: Lay tracks on the hex board. Each track segment has a cost.\n    - `run`: Simulate trains moving along the built tracks to deliver cargo.\n    - `won`: Success state after all routes are completed.\n- **Cargo & Rewards**: Different routes offer varying rewards based on distance and cargo complexity.\n","readmeFilename":"README.md"}