[HJG] 2013-02-22 A WebMaze is a maze of webpages, with links pointing to other pages of the maze. The user-interface looks like an old-fashioned text-adventure, with commands like "Go north", "Go west" etc. Each such page is quite simple, but creating/maintaining all the links by hand would be hard/errorprone/boring. So I wrote a program that creates such a set of webpages. (Does that make me a html-programmer ? :) This one is quite simple, as it uses a hardcoded 3x3 maze: 7 - 6 - 5 ! ! ! X <- 8 - 9 - 4 - ! ! 3 - 2 - 1 <- 0 0: Entry=index.html 1=first room 2,3: dead end 4,5,6,7: correct path 8: last room X: Exit=start.html 9: Trap (can be reached from rooms 2,4,6,8) The entry- and exit-pages (here 0 and X) are 'outside', i.e. not part of the maze. The trap is a set of rooms with links that only point to other traps. One way to use this, is to 'hide' some part of a website (or all of it :) E.g. the standard startpage index.html redirects to the first maze-page, and the maze-exit-page points to the 'real' homepage, e.g. start.html. To prevent cheating/guessing, we also need a custom ErrorDocument to catch 404-errors (i.e. redirect them to our trap-page :) ---- ... ---- Todo: Generate a maze, like [maze generator] or [maze generator2], or import such a maze-description. <>Games | Internet