This could be a lot fun...
One of the things I use to really enjoy doing on the old BBSs were the text adventures. You know.."your in a room with a door to the South...gun on the floor..what do you do?"
That's funny because it happens that one of the things I've been trying to find is a working PHP Z-machine, the Z-machine being a virtual machine program which impliments ZIL or the Zork Interpretive Language.
It happens that I still have all the Infocom '.dat' files, basically the game story files, from when Eskimo North was a single-line BBS running on a Trs-80 model III. If I could find a PHP Z-machine, I could put the games up on our website. I have found two Java Z-machines but they both required Java-5. The advantage of PHP is that the work happens on the server, it just looks like a regular form web page to the end users browser so it will work with anything, even a text browser like lynx.
As soon as you go to Java you limit what browsers it works with and works properly with.