I started messing around with some stuff tonight. So far I have my COBOL app loading up some parsed
records from the original Wry game.
No real user interaction as of yet. I'm still thinking about how I'm going to deal with different
screens having different amount of choices. COBOL uses a table data type to get array like behavior
that I can use.
Something like below ("CHOICES" is the array in question):
01 STORY-RECORD.
88 END-OF-SD VALUE HIGH-VALUE.
05 RECORD-ID PIC 9(4).
05 CORRECT-CHOICE PIC 9(1).
05 STORY-TEXT PIC X(200).
05 CHOICES OCCURS 4 TIMES.
10 CHOICE-TEXT PIC X(50).
Planning is going to be needed with how I'm going to format the input data files. COBOL loads files
based on fixed width of the variables so making this not look like a mess in the data files
will be fun. The one good thing is that it looks like COBOL offers indexed sequential file access and
relative file access on top of basic sequential file access so I can have one story file to load from
that will hopefully be fast to access. (I might think about making a story creator program as well to
make creating stuff easier...hmmm)
Here's a first screen shot with data ripped from QB Wry.
It's about 95 lines of code and about 35 of them is the old Wry logo I copied in.
