Rules: no spoilers.

The other rules are made up as we go along.

Share code by link to a forge, home page, pastebin (Eric Wastl has one here) or code section in a comment.

  • swlabr@awful.systems
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago
    a,b, not much to say

    The hardest part has finding the right dart ascii library to use (by default dart treats everything as UTF-16, which is horrible for this sort of thing) and the right data structure (linked hash map, which is a map that remembers insertion order.)

    • gerikson@awful.systemsOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      1 year ago
      spoiler

      “you have linked hash maps? LUXURY!”

      In my code I had to resort to this sorting

      for my $lens ( sort { $Boxes->[$idx]{$a}{pos} <=> $Boxes->[$idx]{$b}{pos} }  keys %{ $Boxes->[$idx] } )
      

      Perl at its best!