Archive for the ‘games’ Category

What makes a game addictive?

Wednesday, September 24th, 2008

I have an unfortunate habit of getting addicted to computer games - this is one reason why I don’t play them as much as I used to, and why when I do now play games, I usually pick one with a definite ending so that there’s a natural place to stop.

But occasionally I do slip into excess playing of Tet4, Freecell or Spider Solitaire. I think what makes these games particularly addictive is that restarting them is a move which seems to bring you closer to winning. In all these games, the state of the game starts out as quite simple and the moves are obvious, but as you play things get more complexified and constrained until either you lose or (if possible) winning becomes inevitable. Restarting decomplexifies so when you lose your brain (which is still thinking in terms of the game) naturally reaches for the “restart” key.

Tet4 implemented in JavaScript

Tuesday, September 23rd, 2008

If you want to just skip to the game, the link is here.

Many years ago, I decided to write a Tetris game, just to see if I could. I succeeded, but the play area was very wide. So I added controls to make it adjustable. I figured the minimum sensible width was 4 (otherwise not all orientations of all pieces can be used). Playing Tetris on a board of width 4 (or Tet4 for short), I discovered, is very different to normal Tetris. Things change much more quickly, every piece has a profound effect on the state of the board and the normal Tetris strategies don’t apply because it’s impossible to play without leaving some gaps.

After playing for a while, I discovered that Tet4 was even more addictive than normal Tetris, and that it was much easier to get to the state of mental concentration known as “the zone” - where the entire rest of the world seems to melt away and there is nothing left except you and the falling blocks. When you notice this (and can do so without leaving the zone), it becomes almost an “out of body” experience - your conscious mind almost seems to observe from outside as your unconscious mind plays the game as if on some kind of automatic pilot.

Once I experienced this, I wanted to intensify it. I realized that a gradual increase in speed is intrinsic to the zone experience (otherwise it’s just repetitive). But at a particular speed, the limiting factor becomes how fast your fingers can move to maneuvre the piece into place - this can take as many as 4 or 5 keystrokes with the normal Tetris controls. I realized that Tet4 only had at most 10 possible combinations of orientation and position for each block. Most people have 10 fingers so let’s just assign one combination to each of 10 keys and have a finger corresponding to each key. This is the control mechanism that Tet4 uses, and it worked exactly as I had hoped.

This version is a rewritten version in JavaScript (because I wanted to learn the language, and because by making it run in a web browser more people would be able to play it). I’ve tested it on IE7, FireFox 3 and Chrome and it seems to work fine but there may be bugs with other browsers. Let me know if you find any. I’ve made some fairly substantial changes with this rewrite, which makes this a rather unusual and minimalist version of the game:

  • A display which shows the position and orientation for each key (on my original version I learned the combinations by trial and error). This display is really just to reduce the game’s learning curve a bit - to truly get into the zone you’ll need to commit all the combinations to muscle memory.
  • In my original version, the 10 keys just set the position and orientation of the tetroid - you had to press the spacebar (or wait for gravity) to drop the piece to the bottom and get the next piece. This meant a decrease in zone at the point where it gets too fast to use the space bar and you switch from 11-key mode to 10-key mode. In this version, the 10 keys drop the piece as well, so you always press 1 key per piece.
  • In my original version, the game ends rather suddenly when your tower gets so high that there isn’t time to think before your active tetroid locks. In this version, there is a “curtain” which falls behind the playfield, and you always have until it gets all the way to the bottom before your tetroid drops. This means that the amount of time you have isn’t dependent on the height of your tower. Also, the piece doesn’t enter the playfield until it is dropped, so you can take care even with the endgame (you lose when you drop a piece and it would protrude from the top of the screen).
  • The single key control mechanism is rather unforgiving of misdrops, so I added an undo feature - at any time you can press Q to undo the last drop. This helps in learning the keys, but for getting the best scores it is best avoided as your score is also undone but the time speedup is not. This also doesn’t allow you to “look into the future” (further than you can anyway with the next piece indicator) - a new tetroid is chosen at random for the new next piece whenever a piece is placed.
  • I added a persistant, global high score table which includes a facility for replaying the top 10 games.
  • I modified the colours and key to position correspondances to better take advantage of the symmetries. This puts me at a bit of a disadvantage (since I’m used to the original keys) but should be easier to learn.

One other thing I’d like to do in the future is make an ActionScript/Flash version so that it can be embedded into other pages. I started this but it turns out that without the official Adobe development kit, Flash is really hard to learn.

Cheating in online games

Friday, September 12th, 2008

Many modern online games go to great lengths to try to prevent players from cheating - some of them quite invasive. I hope that in the future our computer systems are architected to make it trivial to subvert such malware, but where does that leave players of on-line games who want to avoid playing against cheaters?

Well, I hope that in the future, online games are designed in such a way that cheating is impossible - that is, no information sent to a player’s computer that would allow them to gain an unfair advantage and no information received from a player’s computer is trusted to be untampered-with. In such a game, a player would be allowed to use whatever client software they like, and would be encouraged to use client software that gives them the best odds. Serious golf players pick the clubs that give them the best advantage, tennis players pick the best tennis rackets and so on - why should on-line gaming be any different?

One implication of this is that the best games will be Turing tests of a sort - a game of aiming accurately and reacting quickly won’t be much of a challenge since the computer can do those things better than human players. Tasks that humans can do well but computers are poor at will need to be integral to the game.

That’s not to say that games of aiming accurately and reacting quickly won’t exist, but if they are played online they will be played between people who each other and trust each other not to cheat, not between strangers.

Webifying old games

Tuesday, August 5th, 2008

One of these days I’d like to put some of my old DOS programs on the web to make them a bit more accessible. I used to think that I would do that in Java but these days Flash seems to be the most popular way to do interactive thingies on the web so maybe I should learn that. Or even just plain old HTML with Javascript - if someone can implement Lemmings in DHTML then I’m sure Cool Dude and probably some of the VGA demos could probably be implemented that way as well.

Digger adventure

Monday, August 4th, 2008

Lately I haven’t really had any interest in improving Digger, but I still occasionally think it might be fun to write a sequel. “Digger 2″ or “Digger’s Adventure” would have a 2D continuously scrolling playfield, impenetrable walls, new monsters, bosses, new items to collect, more weapons, shields, warps, speed-boosters, and maybe the possibility to dig to the surface where it would be possible to jump.

Another 2D game

Sunday, August 3rd, 2008

Another 2D game I’d like to write (which might even be the same game as that one) is a bouncing ball game.

The player would be in control of a ball which could be accelerated by means of the direction keys. So holding down right would give a velocity increase in the positive x direction proportional to the length of time the key was held down (there have been a few games that work like this but in my experience in most non-simulation games the player only has one or two speeds and acceleration to/from these is instanteous). Wind resistance would be implemented to avoid the possibility of the ball reaching unlimited speeds.

Once the player has got used to these controls the next complication is maze traversal. While you could in principle just maneuvre around the maze slowly, it is much more fun to play at speeds close to the ball’s terminal velocity. At these speeds, the ball’s turning radius will be much larger than the scale of features in the maze, so the ball will hit the walls. When it does so, the obvious thing to happen is that it should bounce off (unless the wall is dangerous or special in some way).

Another possible complication is areas of the maze with gravity fields. The strength of the gravity could be smaller than the control acceleration (in which case it just changes the controls a bit) or could be greater (in which case entire directions become impossible to travel in). Gravity fields can be constant or central (or may have even more complicated configurations).

Then there could be places in the maze where the drag factor is proportional to some the velocity plus some constant field (i.e. windy places).

Some parts of the maze could be flooded with various different kinds of fluid, giving the opportunity to show off fun 2D fluid dynamics simulations.

Then of course there are the usual game elements - things to collect, power ups, space warps, spikes, enemies with various degrees of artificial intelligence and so on.

2D game

Tuesday, May 20th, 2008

I don’t tend to have time to play many computer games these days (though I made exceptions for Portal and Lost:Via Domus), but I still like to keep abreast of how technology trends change in games.

A concept that I think is interesting in games is to “raise the stakes” as the game progresses, so that later levels seem to be more important than earlier ones. A couple of contemporary games (neither of which I have played) that embody this principle are Katamari Damacy and Spore. As the game progresses, the very scale of the action increases, causing the early parts of the game to pale in comparison.

3D graphics have become much more impressive in the past few years but the trouble with 3D is that the extra degrees of freedom make the controls more complicated and difficult to learn (especially for people who don’t play many 3D games).

I think it would be interesting to apply the “increasing scale” concept to a 2D game using modern graphical techniques. My idea is a 2D-scrolling shoot-em-up. You start off with a very small, simple “asteroids” spaceship with a very simple weapon. As you blow things up, you can collect more weapons which make your spaceship bigger. Using these bigger weapons, you can attack bigger and bigger targets. The view gradually “zooms out” as the size of the ship, weapons and targets increases.

This idea also reminds me of the Seven Force in Gunstar Heroes on the Megadrive. Easy parts of this boss appeared in an early level and then in a later level there was a “scaled out” version which was much harder and with smaller sprites.

And with modern technology, 2D games can be seriously beautiful. Aquaria does actually zoom in and out a bit, but not by orders of magnitude as I’m imagining.

Cool stuff you can’t find on the web

Saturday, November 3rd, 2007

Every so often, I think of something - perhaps a book, television programme or computer game - that I remember but that I have lost or have no record of. Usually when that happens, I turn to the web - a simple search and I have a massive amount of information on whatever it is in no time.

However, sometimes it doesn’t work. For whatever reason, the collective consciousness has failed to remember some things. A few of these are recorded here, but since I’m relying on my memory, some facts may be inaccurate.


Fire was a computer game I used to have a copy of, but it was destroyed by the Dir II virus. You had to fly a helicopter through 8 levels, blowing up various things including hot air balloons, planes and a train (which constituted level 2). Then there were some levels over water, where you had to destroy boats, and some over desert, where you had destroy tanks and ground-to-air missile launchers. The really amazing thing about this game was the parallax scrolling - I’d never seen anything like it on the 8MHz 8086 I played it on. It had CGA and EGA graphics modes. The title screen (which took up most of the first of the two 360K floppy disks the game came on) was beautifully atmospheric, with the helicopter flying in front of the sun and stopping in the middle. Then there was this brilliant (and long) bit of sampled soundtrack. There was some documentation, but it was in French. When I asked Jim Leonard of Mobygames, he hadn’t heard of it but said it sounded like a game by Loriciels. I found some screenshots for another Loriciels game on the web and the graphics did have a similar sort of style. I’d really like to play this again, but searching for “Fire” in the context of computer games is a somewhat futile exercise.

[Update!] - Fire wasn’t by Loriciels at all but by New Deal Productions. I have found information about versions for the Amstrad CPC, Amiga and Atari ST, but still haven’t found the PC version.


I used to have a book which (like the “choose your own adventure” series) was divided up into sections, between about 1 and 5 per page. At the end of most of the sections there was a decision to make, with a section number for each choice. There were about 200 sections altogether, and many possible paths through the book. Every time I read it I came across sections I hadn’t seen before. The book was also a competition - if you figured out it’s secret you had a chance of winning a trip to Disneyland. The plot was that the land was dying, and you had to find a magic word to tell Steeleye the Raven so he could break the spell and restore the land. At one point in the book, you were falling and had to shout “Save me, Steeleye!”, holding the feather he gave you at the beginning of the book, in order to get rescued. There were puzzles such as roman numeral codes and liar/truth-teller type things. There was a unicorn near the beginning who gave you a tear which emitted light. There was a talking tree near the end, and there might have been a swarm of bees somewhere. One character says “Deeds, not words” and tries to kill you. The book was published by Ladybird (it was that shape) but I don’t remember what it was called or who wrote it.

[Update!] - I now know that the book is called “Steeleye and the lost magic” by Jason Kingsley, illustrated by Jon Davis and pubished in 1987. If anyone can help me find a copy I’d be very grateful to them!

[Update 2!] - I now have a copy of the book! It’s a bit shorter than I remembered (only 117 sections) and a bit easier (I’ve solved it, I think, apart from one cryptic clue) but otherwise very much as I remember. I’ve scanned it so hopefully soon I’ll find time to put it on the web (okay, it would be a copyright infringment, but since the book is out of print I’m sure there would be no harm in it.)

Links which helped me in my quest to find this book:
Demian Katz’s Gamebook site - http://www.netaxs.com/~katz/game/book.htm
The Cheesypeas Ladybird book site - http://www.cheesypeas.demon.co.uk/ladybird
Sadly, both of these websites have since gone missing. Please let me know if you find them.


Comedy wordsmith and Splicer’s disease sufferer Creighton Wheeler, who used to appear regularly on
Kevin Greening’s weekend morning shows on BBC Radio 1, and now appears somewhat less regularly on Steve Wright’s afternoon show on Radio 2.

[Update!] - The part of Creighton Wheeler is performed by Andrew McGibbon. Testbed made two shows about Creighton Wheeler in 2003 for Radio 4, called “Wheeler’s Wonder” and “Wheeler’s Fortune”. Anybody know where I can get a hold of these? Apparently Creighton Wheeler has also appeared on Loose Ends.


Pickwick tell-a-tale tapes (in association with Ladybird books, Pickwick international and Moss Music) - brilliant audio books for children. I have “Treasure Island”, “Swiss Family Robinson” and “Gulliver’s Travels” but I’m sure there were many more. The voice acting and classical music were great.

[Update!] - Reader James pointed me to this website which is selling these tapes.

Along a similar vein, there used to be a magazine (I think) which came with a tape which had various childrens stories on it. The one I remember was “The thin king and the fat cook” but there were a few on each tape. I had a couple of tapes, but I’ve lost them now. Maybe they are still at my parents’ house somewhere.

[Update!] - This is what I was talking about. Apparently I had “Story Teller 2″ parts 5 and 16 and possibly also “Christmas Story Teller” part 2, because the titles Bored Brenda, Noggin And the Birds, The Snow Bear, The Inn Of Donkeys, Shorty The Satellite And The Brigadier, The Nightingale, Hugo And the Man Who Stole Colours, Mole’s Winter Welcome, The Tale of the Little Pine Tree and Grogre and the Giant Nasher seem familiar. I remember very little about any of these except that (as I recall) some of them made me feel quite sad. And there was something about a picnic of bread, cheese and apples in one of them. And people getting swallowed up by a bog. Derek Jacobi’s voice still makes me think of these stories to this day. It’s quite possible that at least some of these tapes were chewed up by my tape player - it used to do that every once in a while (particularly when I stuck things into it - I was a little scientist).

[Update!] - I got a hold of a digital copy of all of the tapes and magazines, and they are just as good as I remember - extremely well done. I have been playing them for Alexander but he’s a bit young for them at the moment. I look forward to the day when he is old enough to enjoy them. The one with the picnic was “The Snow Bear”, and the sad one was “The Nightingale” (all these stories have happy endings, though). “Mole’s Winter Welcome” still brings a tear to my eye.


The A Word A Day entry for 18th December 1998 reads:

Date: Fri Dec 18 00:04:27 EST 1998
Subject: A.Word.A.Day--straight-from-the-shoulder
X-Bonus: We see but dimly through the mists and vapors; \
 Amid these earthly damps \ What seem to us but sad, funeral tapers \
 May be heaven's distant lamps. -Longfellow (1819-1892)

straight-from-the-shoulder (strayt-fruhm-thuh-SHOAL-duhr) adjective

   Frank and forthright: straight-from-the-shoulder reporting.

   "A striking poem called Sequinned ends this way:
        Girl, don't you let that city get away.
        Lift it up, raise it up, slip your arms through
        and take it back to dance.
   This is poetry that speaks to us boldly, straight from the shoulder."
   Natalie Soto, et al., On the Shelf, Rocky Mountain News, 21 Dec 1997.

This week's theme: idioms.

Anyone know who this poem is by and where I can get a copy?

[Update!] My friend Claudine Burgos found the poem. Not on the web, though - by the old-fashioned technique of looking up the archives of the Rocky Mountain News and calling the library to find a copy. The poem is by Allison Adele Hedge Coke and goes:

    Don't tell me you couldn't reach down pick up
    the whole gleaming garment and wear it
    to fancy shawl dance back home. Dancing proud
    in a twenty -four- dollar trinket city.

    All laid out
    shimmering and shining on jet black world
    traffic lights, stret lamps, hot neons, cool fluorescents.

    Headlights
      	swim freeways electric

      	minnows, glittering eyelets on bridges
    bridges lacing up New York and Newark, separate
    sides of a sequined vest.  Borough lights trace out
    webbed wing

    butterfly design, no wasps- mosquitoes even.
    Something ready to fly off the whole metro stretch.
    Some cousin calling:

    Girl, leave your French braids right `cause
      	Cut Nose is goin' ta have it out with you
    Over snagging her sometimes half-side last night.
        She wants to take yoru prize and crown
  	from Red Nations Pow Wow-

    Her eyes painted sharp red at the corners,
    red as the landing light
      	on this plane's wing tip.
    Her plume high and straight, the Empire State,
    while yours falls
      	gently over your part.  But that vest-
    red, green, gold, silver sparkles,
    no one's got more brilliance.
    More elegant that bugle beads and embroidery,
    More stunning than satin and silk.

    Girl, don't you let that city get away,
    Lift it up, raise it, slip your arms through
    And take it back to dance.

The game Willy the Worm was written by a guy called Alan Farmer. Anyone know anything about this game other than what’s in the documentation, such as where to obtain the editor, and what the author is doing these days? I’d be particularly interested to know if there was ever a “Willy the Worm II” or a “Pete the Pigeon” game.

[Update!] - A school friend of Alan’s sent me some of his software:


I used to have a book called something like “20 Games for the BBC Micro”. They were written in BBC BASIC mostly (although there was one - a board game - which was written partly in assembler). You had to type them in. The games included Hunchback, Monty Mole, a Star Wars game and some others I don’t remember. How come you can’t find downloadable copies of these games to run on an emulator?

[Update!] I since found out what happened to the book - I lent it to a friend of mine and forgot about it. I’ll have to try to remember to get it from him next time I see him, and possibly reproduce some of the programs here.


Chris Evans used to do the breakfast show on BBC Radio 1, and every Friday he and his cohorts would sing “The Weekend Song” (or, possibly, “The Friday Song”.) Some of the lyrics were “I want Spielberg to focus my camera / I want Versace to dress my dog…”.

[Update!] - Someone sent me some more lyrics:

I want to live in a castle,
I want an ocean for a pond,
I want a jumbo jet just to get to work,
Because it always takes me far too long.

I want to skip in the sunshine,
I want to dive into the deep blue sea,
I want to buy an ice cream for the man in the moon,
Because he always shines his light on me.

I want Spielberg to focus my camera,
I want Versace to dress my dog,
I want a current account at the Jodrell Bank,
I want Niagara falls to flush out my bog.

We’re all just a drop in the ocean,
And the world’s just the size of a pea,
And like a meal for one, it’ll soon be gone,
And it’s all just a cliché for me.

Anyone got a recording?


“Das Verflixte Hundespiel” by Artus Puzzle. You had nine cardboard squares, and on the side of each square was half a dog (either a head or a tail). There were four different types of dog. You had to arrange the squares into a 3×3 matrix in such a way that the heads and tails matched up. It was very difficult! There are 9! x 48 = 23,781,703,680 different ways of arranging the squares but only 2 solutions. I eventually gave up and wrote a computer program to solve it.

[Update!] - Das Verflixte Hundespiel is still being sold here. Apparently it is Swiss. This isn’t exactly the same version I had - the dog illustations on the version I had were different.

A friend of mine remembers having a British version - anyone know anything about it?

My then girlfriend (now wife)’s family bought me a similar puzzle which is even more difficult as it only has one solution. The box and website claim that there are “over 300,000″ wrong ways to assemble the pieces but this is a gross underestimate (probably based on 9! = 362,880 permutations, which doesn’t include orientations).

[Update!] - Commenter John requested the solver program and solutions. Here they are. It is currently set up to solve the card suits jigsaw version (I don’t have the “Das Verflixte Hundespiel” puzzle to hand). It’s not a particularly elegant way of coding it (18 nested loops for the tile choices and orientations) but it should be easy to adapt for similar puzzles. There is a project file for Microsoft Visual Studio .NET 2003 but the code is portable.


This one isn’t for me, but for a friend of mine. Dave writes:

Several years ago, a band called Blind Melon did an acoustic set on a late-night ITV rock/metal show called “Noisy Mothers”. Around a month later, the lead singer died of a cocaine overdose, after they’d only released two albums [they released a third posthumously]. I’ve been trying to track down a recording of that ever since I accidentally taped over it a couple of years ago, before I could transfer the VHS to digital… I’ll be impressed if anyone in the world can track a copy down…

Can you help?


Some years ago, I remember seeing several episodes of a TV show called “They Who Dare” on BBC2. Each episode was only 10 or 15 minutes long (might have been longer or shorter, I don’t remember, but I’m sure it wasn’t a full half-hour).

Each episode documented some dare-devil sport such as parachuting, hang-gliding or BASE jumping. One particularly memorable episode featured people jumping out an aeroplane and then parachuting down large holes in the ground. The holes themselves were formed by some unusual natural phenomenon, and were quite spectacular even without people parachuting down them.

Each episode was a real work of art - fusing music and beautiful landscape cinematography with the human drama of people who get their kicks from flying through these scenes in some dangerous fashion. It was so enthralling that I remember regularly finding myself realizing at the end of an episode suddenly realizing that I had actually been watching TV for the past 15 minutes and not actually performing these incredible stunts.

I’d love to get a hold of copies of all the episodes of this show, but have only found single, in-passing mention of it using Google.


Along similar lines, I remember hearing about a 5-minute BBC promotional film short featuring a Helicopter tour around the coast of Britain. I never saw it (except for highlights on Points of View but I remember people saying it was really amazing to watch. I have ever since been kicking myself for missing it.


What is this piece of music? I found it on an episode of This American Life but this piece isn’t listed. It isn’t on TAL’s scoring tracks page either (I think - I listened to them all and didn’t hear anything that sounded like it). The world needs a search engine where you can upload a piece of music and find out what it is.

[Update!] - Somebody pointed out that such services already exist - Shazam is one and I think there are several others. Unfortunately they all seem to need an SMS-capable mobile phone which doesn’t really help me because I don’t have one.

[Update 2!] - John Philips from Bath emailed me with the answer - the song is “At The River” by Groove Armada.


This one is a real long-shot, since there is almost nothing to go on.

There is a childrens book I remember reading as a child, but I remember almost nothing about it. I remember that I read it in the childrens’ section of Goring library, and it may have been about some children going into space. I think it was (at least mostly) a picture book. I have a vague recollection of one of the illustrations being of something like this (possibly in the middle of a large room, possibly aboard an alien spaceship - though that could just be a mental picture I formed at the time). I don’t know that I would even recognize it if I saw it. I do remember that I felt amazingly inspired by it at the time and I have a feeling it may have influenced my life greatly.

I recently visited Goring Library again for the first time in more than 19 years. It was very much like I remembered (though as one would expect it seemed smaller than I had remembered). Unfortunately (with the exception of some Meg, Mog and Owl books I had completely forgotten the existence of) all the books I that were around when I was a child seemed to have been replaced.

So to sum up, this book:

  • Was written for children
  • Has colour illustrations
  • Was published in the UK in 1988 or before
  • Has a science-fictiony sort of story, possibly involving aliens

Any suggestions about books that might fit these criteria?

Portal

Monday, October 29th, 2007

I played through Portal over the weekend. I don’t play many computer games any more but I’m glad I made time for this one - very impressive storytelling, and hilarious dialogue (monologue?).

Sand game

Tuesday, January 24th, 2006

The falling sand game is an amusing way to while away a few hours. The physics may be distinctly non-realistic but the emergent effects caused by the different interactions between the various substances are fascinating. See if you can figure out how I generated this image:

However, the version with flammable zombies is infinitely more disturbing.