News for hackers. Stuff that matters.
Re:Maclisp Dunnet (1982) by kragen on Wednesday November 07, 2018 @01:26PM (#18401049)
I always found the parallel-arrays (or rather parallel-lists) structure of Dunnet aggravating. Isn't there a better textual representation for an adventure game map than this?

    (setq dungeon-map '(
    ;		          no  so  ea  we  ne  se  nw  sw  up  do  in  ot
                        ( 96  -1  -1  -1  -1  -1  -1  -1  -1  -1  -1  -1 ) ;0
                        ( -1  -1   2  -1  -1  -1  -1  -1  -1  -1  -1  -1 ) ;1
                        ( -1  -1   3   1  -1  -1  -1  -1  -1  -1  -1  -1 ) ;2
                        ( -1  -1  -1   2   4   6  -1  -1  -1  -1  -1  -1 ) ;3
                        ( -1  -1  -1  -1   5  -1  -1   3  -1  -1  -1  -1 ) ;4
                        ( -1  -1  -1  -1  255 -1  -1   4  -1  -1  255 -1 ) ;5

This predecessor version has it even a bit worse: https://github.com/Quogic/DunnetPredecessor/blob/master/foo....
Re:Maclisp Dunnet (1982) by RonnieSchnell on Saturday November 10, 2018 @01:53AM (#18420271)
I considered a more textual representation, but obfuscation of this serves a purpose. I don't mind people cheating if they must, but it doesn't have to be easy. And sometimes people enjoy reading the code but don't want everything spoiled.
Re:Maclisp Dunnet (1982) by kragen on Saturday November 10, 2018 @11:24AM (#18421988)
OH. I never even considered that possibly this was intended to be an obfuscated representation. Is it compiled from some other, more direct representation?