Feb. 27th, 2011

dormouse1953: (Default)
There was a letter in The Independent today following on from an earlier article about a Doctor Who exhibition.  The writer of the article remembered seeing an episode of Doctor Who in his childhood which the person showing him around the exhibition identified as The Celestial Toymaker.  The letter writer suggests that from the description, it was more likely to have been Carnival of Monsters, something I thought when reading the article.

However, mention of The Celestial Toymaker brought back memories.  About the only thing that I can remember about the episode was that the Doctor was having to solve a puzzle while his companions had to navigate a number of other games and puzzles.  And the puzzle the Doctor had to solve was called the Trilogic Game.  There was even an article about the game in the Radio Times, telling you how to play the game yourself at home.

It was played on a triangular board.  In one corner sat a tetrahedral pyramid sliced horizontally into ten tiles, so the top tile was a smaller tetrahedron, below that a triangular tile with sloping edges, and so on down, the bottom tile being the largest.  The object of the game was to transfer the tiles from one corner to another in 1023 moves.  A move was taking the top tile from one corner and placing it in another.  No tile could be placed on a smaller tile,  but any tile could be placed on an empty corner.

Fans of recreational maths will know this as the Towers of Hanoi, a puzzle going back to Victorian times, but I'd never seen it before.  When I did see it later in books o, I always thought this triangular packaging was more elegant than the normal presentation, in which  the tiles are discs or rings placed on three pegs arranged in a straight line.

After the first part of the story was shown, I re-read the article in the Radio Times and set about trying the puzzle with materials to hand, mostly toys and pieces of paper.  The article told me that the number of moves for three tiles was 7, for four tiles 15, up to 1023 for ten tiles.  I quickly noticed that each number was twice the previous number plus one and that gave me the clue to solve the puzzle.  (In fact, the number of moves for a pile of n tiles is 2^n -1 but I don't think I knew of powers of two then, although I had come across binary arithmetic.)

To move a pile of one tile from corner A to B is easy, of course.  To move two tiles, move the top tile from A to C, the second to B, and then move the tile from C to B - three moves.  For n tiles to be moved from A to B, move the top n-1 tiles from A to C, the nth tile from A to B, and then repeat the first set of moves to move the n-1 tiles from B to C.

According to Wikipedia, this story was broadcast in April 1966.  More than ten years later, by which time I was working as computer programmer, we got a new computer at work that allowed recursive programming, and to test it, I wrote a program to play the Towers of Hanoi.

[Wrote this entry some days ago, and thought I'd posted it then, but it disappered, only for it to reappear just now.]
dormouse1953: (Default)
Went to see the new production of Frankenstein at the National Theatre yesterday afternoon.  There were four actors indisposed, including two of the headline stars, Benedict Cumberbatch and Naomie Harris.

Cumberbatch and Jonny Lee Miller are supposed to be alternating the roles of Frankenstein and the monster, so Miller was still available to play the monster, a virtuoso performance, but understudy Daniel Ings played Frankenstein, and did very well.  Harris was to play Frankenstein's fiancée, Elizabeth, and her understudy was Lizzie Winkler, already playing Agatha, fortunately already dead when Elizabeth appears.

Four members of the cast struck down for one performance!  No explanation as to why.  You'd think there would a news item about it, what with the high profile the show has had in the press this week.  Checked the BBC news on my phone on the way home and the headline in entertainment was that a performance of King Lear had been cancelled in Wales following Sir Derek Jacobi losing his voice, but nothing about Frankenstein, and a quick google has brought nothing up.

Incidentally, John Clute has a collection of essays coming out called Pardon the Intrusion, these being the first words the monster says in the book when he introduces himself to the blind de Lacey.  The equivalent words in the play are "Piss off!  Bugger off!"

Profile

dormouse1953: (Default)
dormouse1953

January 2025

S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 30th, 2025 09:29 pm
Powered by Dreamwidth Studios