Happy Birthday, BASIC!
Beginner's All-purpose Symbolic Instruction Code
Today is the 50th birthday of the BASIC programming language. As promised, I'm celebrating the event by releasing a handful of programs I've written in a dialect of BASIC.
I've chosen to write these in Gambas 3, a dialect that's only available on Linux[*]. But rest assured, you're not missing much. These are prepared for the occasion on short notice, and all are short of having earned a 1.0 release number, though I'd say all but Tablut are pretty feature-complete.
Tablut" (Tablut.tar.gz) a Tafl game. Tafle is a genre of boardgames popular among the Vikings, which eventually died out and is now enjoying a bit of a renaissance using re-created rules, as best as the archaeologists have figured them out. This version of Tablut provides a working two-player board, enforces three scholars' interpretations of the rules, and has the world's absolute worst AI (which really is only there to test turn-based play... I haven't had time to actually write a "real" AI).
TimeTool (TimeTool.tar.gz), which I've previously had as an open-source offering on other platforms. It was previously written in Delphi (Pascal). People have asked me when I would update it and fix some bugs. I suppose I just did, so I may wind up back-porting these changes to VB.net for the Windows crowd. TimeTool is a very odd sort of duck. It keeps track of the projects you're working on, and very pointedly does NOT track multi-tasking. It helps you determine where you've been spending your attention. It keeps accruing time to tasks even when it's not in memory, so it's great for tracking tasks that require re-boots.
So Long Sam
So Long Sam (SoLongSam.tar.gz), which is in fond remembrance of an old 8-bit game I once typed in from an issue of Compute! magazine. After re-writing it for this event, I went back and dug up the original. It seems I remember the game as having been much better than it was, and as this version aligns with my memory, it's more than a little bit better than the original. I did sort of mis-remember the premise of the original, so we'll call this one "inspired by" instead of a re-write. Your goal is to simply cross a spooky graveyard in the dead of night without bumping into a tombstone and awakening a ghost or zombie.
ZenerCards (ZenerCards.tar.gz). This is a little time-waster for people who think they are psychic. It will either definitively prove you ARE or completely convince you that you're NOT. There are three challenges: a PREDICTIVE test, to see if you can foresee the future; a CLAIRVOYANCE test, to see if you can determine that which is hidden in the present; and a TELEPATHY test, so see if you can read (or broadcast) thoughts. My prediction is that whoever you are, and no matter the test, you'll wind up with a score of around 20%... random chance.
I have work and real life and stuff, so I'm a little behind. I've put up quick links. Right now it's just tarballs, but as I have the time I'll put up.rpm or .deb installation packages. As it is you can run off the source once you've got Gambas installed, and executable files are contained in the tarballs.
It's Open Source, of course, of course.
[*] Sorry, Windows users. Gambas 3 only runs in Linux. However, this is a great time to try out Linux for yourself. You can install VirtualBox. Then download an "ISO" image of a Linux install DVD and install it in the virtual machine.