@Retrochallenge – 28 Years Later
Remember those halcyon days when you used to cycle excitedly to the local newsagent for the latest copy of your favourite computer magazine, rush home and spend three hours typing in a BASIC listing, fail to save it and then watch as your computer crashed due to an errant semi colon.
Well I remember it especially vividly given that yesterday I spent an hour or so typing Yahtzee into my BBC Master. That’s right, I took one for the team. Unable to successfully transfer the code I’d worked on whilst waiting for the Master to arrive I opted for the manual option.
Jokes aside it was actually quite a pleasant experience. The BBC keyboard is very responsive and the screen was actually pretty easy on my eyes (remembers hours playing M.U.D. on a C64 hooked up to a TV and the subsequent migraines.)
Of course editing the code is a tad more laborious on the BBC than with a modern editor but nevertheless I’ve continued to make improvements, mostly aesthetic. I’ve banished the garish red dice and gone for more subtle black and white in a slightly less in your face graphics mode so everything’s a bit smaller.
I’ve also numbered the dice so it’s more obvious which ones you’re holding, realigned some of the text and cleared out a few other redundant lines of code.
I’ve also been looking at the possibility of using the Mode 7 – Teletext mode to render the dice. I found a good resource here that covers Mode 7 and the Sixel graphical elements. Incidentally Ceefax, the BBC’s text information service, introduced in 1974 was finally retired on the 23rd of October 2012 when the last remaining analogue TV symbol in the UK was switched off in Northern Ireland in favour of digital broadcasts.
When running Yahtzee on the actual Beeb rather than the emulator the previously reported issue with the lack of randomness of the dice throws has resolved itself.
Presumably the random number generator is now being correctly seeded and is as random as such computer generated things can be.