Skip to content

edvella/SixKeysOfTangrin

Repository files navigation

The Six Keys of Tangrin

Some time ago I started to consider that I should be using some new examples when describing TDD after I realised I had been using Fizz buzz for quite a few years.

At the same time, I was also scouring the web looking for old computer magazines, an activity which I do quite often. Sometimes it's the nostalgia kicking in. Other times it is to find that particular issue to complete a collection which I had missed at the newsagent some forty years ago.

This time I decided to go way back to my first microcomputer and the very first issue of the Tansoft Gazette from November 1981.

Before magazines had cover disks, we used to have printed code listings that we had to type in exactly (hoping that there were no errors from the printer) so that we could get some fun playing whatever game it was. But soon I realised that the fun was in the coding and debugging process itself, but anyway on page 18 of this issue was the listing for a game called The 6 Keys of Tangrin by G.Phillips.

And then that's when I decided to use this as an example to talk to my colleagues about TDD. My intention at first was to have a story to tell whilst I was trying to explain TDD. It was a bit tough at first as I tried to understand the original code and convert it into my requirements, but then carried on after the program started shaping up into working code. The game is now feature-complete, but there are some things which need to be ironed out. Feel free to report any issues that you find.

The code here is in C#. Take a look around if you are curious (about history, the game, and TDD). The original game was written in BASIC and the following is a quote from the mag.

This is a 16K adventure game in BASIC. The purpose of the game is to navigate through a maze of caves to retrieve the 6 keys of Tangrin and the treasure which they can unlock...

...This game is fiendishly difficult to get through so be prepared for many frustrating hours of play!

Sounds like my kind of fun!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages