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.
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!
10 comments
[ 1.7 ms ] story [ 33.4 ms ] threadSorry if imgur sucks. I don't know a better option.
In the single player mode, the computer is not so intelligent. So initially i just kept winning without understanding what was happening.
Did some more fixes and then it was running. The game looks really fun but the AI player is always losing by himself too quickly.
http://www.gltron.org/
https://armagetronad.org/
I did something similar in 6502 assembly a long while back and it fit into less than a kilobyte of code..