Most active commenters

    47 points DavidCanHelp | 16 comments | | HN request time: 1.066s | source | bottom
    1. AnyTimeTraveler ◴[] No.45111157[source]
    This readme could really benefit from a screenshot.
    replies(2): >>45111203 #>>45113963 #
    2. geerlingguy ◴[] No.45111203[source]
    Came here to say the exact same thing. At a glance, is it 3D or 2D? Console game like snake or with color and sprites? Etc.

    Either screenshots or a gif would be nice.

    3. nifty_beaks ◴[] No.45111716[source]
    They…didn’t want to?
    replies(1): >>45113971 #
    4. dfee ◴[] No.45111758[source]
    Here's a recording of game play I made: https://imgur.com/Gy9mH57

    Sorry if imgur sucks. I don't know a better option.

    5. bestouff ◴[] No.45112371[source]
    They probably hate spending time debugging stupidly preventable errors.
    6. nurettin ◴[] No.45112579[source]
    Looking at how clean the code is, that would probably be a 1-1 translation given you have the C version of ggez.
    7. dvt ◴[] No.45112624[source]
    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.
    replies(2): >>45113104 #>>45116328 #
    8. avinassh ◴[] No.45112890[source]
    This is cool! The code base is small to follow easily and also TIL ggez.

    In the single player mode, the computer is not so intelligent. So initially i just kept winning without understanding what was happening.

    9. nunobrito ◴[] No.45113166[source]
    It was fun, on linux still had to install "sudo apt install libasound2-dev libudev-dev pkg-config build-essential"

    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.

    10. ilaksh ◴[] No.45113778[source]
    See also:

    http://www.gltron.org/

    https://armagetronad.org/

    11. timeon ◴[] No.45113963[source]
    Seems like Claude is not good at generating screenshots yet.
    12. timeon ◴[] No.45113971{3}[source]
    Comment was not even sarcasm or joke. Just pure trolling. No need to respond to something like that in 2025.
    13. IFC_LLC ◴[] No.45116328[source]
    Gee, I'm sorry, but this is just over my head.

    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.

    14. DavidCanHelp ◴[] No.45116952[source]
    Fixes Applied:

      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!
    15. sigma02 ◴[] No.45127891[source]
    Kudos, but..

    I did something similar in 6502 assembly a long while back and it fit into less than a kilobyte of code..