MartinPacker 11000094DH Visits (10970)
The very first computer game I ever played was called Rhino and it ran on a Commodore PET. The school had been lent one for a fortnight. (I don't know why as we didn't go on to buy any, instead getting a single RML 380Z.) Imagine a character-grid screen where the rhino's are represented by pi symbols that chase you as you try to move from A to B. It was written in BASIC and allowed from 1 to 10 rhino's. (We modified it so it would allow up to 100: It played much slower but the overwhelming number of pi signs was good for a 5-minute giggle.)
Having got that off my chest normal service is resumed:
Here's a sample that shows one of its capabilities - processing XML:
These two lines parse a text string (in the variable "stdinText") as XML and print the value of the quantity attribute of each XML node that has "carrot" as the value of its type attribute. If you know XML I think you'll see the power of that.
For completeness here is the XML and the whole code to read the XML string from stdin and do the XML query:
First the XML:
In this version of the code two java packages are imported that are used to get the XML from stdin. I chose to do this so I could indirect from a file - and also from BPXWUNIX (the REXX interface to z/OS Unix I've mentioned several times recently here).
So I set out to try two things:
The latter proved interesting: I made a bit of a mess of it by copying the Dojo Base files up to z/OS one at a time. I should've done it wholesale. But I got there in the end. And here's a test scri
which does the following:
And if you want an exemplar of how far games have come from the original Rhino try Uncharted 3. I've just completed in and it's outstanding. (So outstanding I want to go back and play the whole thing again, as well as dipping my toe in the multiplayer water.)
| Corrected to read "BPXWUNIX" instead of "BPXWDYN".