This game will appeal to children of all ages. And it can teach both programming and subjects like English or history while it entertains.
Have you ever played MAD LIBS?
This game was written by Fred D'Ignazio and published as type-in source code in The World Inside the Computer column in Compute! Issue 29, October 1982. The column comments fairly heavily on the code, which could be modified to create a skeleton story from any desired source.