Feels a bit more like Snake than Tron, but a very cool concept. Also quite impressed by the very readable 1000 lines of code. I've been writing a lot of Rust (various toy projects) for the past few years, but would love to do it for work at some point.
It takes over 282 crates to build this 1000 lines of code. It takes 1.3 gigs of space to display a window with a game on one's screen. And the AI does not work at all since it just crashes in itself. I'm not sure how this can be a good example of a program written in Rust. Rust is all about low-level optimized over-speedy small-sized binaries. Right now I see just a blob of something that barely works.
And yes, Light Cycle is in fact just a version of a Snake with a different ruleset.
1. AI Self-Crashing Bug - Increased collision buffer zones and improved trail detection
2. Linux Dependencies - Added comprehensive installation instructions for Debian/Ubuntu, Fedora, and Arch
Improvements Made:
- AI now skips 30 recent trail points (up from 10) to avoid self-collision
- Increased look-ahead distances for all difficulty levels
- Fixed trail collision detection in pathfinding
- Added full Linux dependency documentation
The AI should now survive much longer and provide a better challenge. And thank you for the two PR's!