mscroggs.co.uk
mscroggs.co.uk
Click here to win prizes by solving the mscroggs.co.uk puzzle Advent calendar.
Click here to win prizes by solving the mscroggs.co.uk puzzle Advent calendar.

subscribe

Blog

 2017-06-03 
As a child, I was a huge fan of Captain Scarlet and the Mysterons, Gerry Anderson's puppet-starring sci-fi series. As an adult, I am still a huge fan of Captain Scarlet and the Mysterons. Set in 2068, the series follows Captain Scarlet and the other members of Spectrum as they attempt to protect Earth from the Mysterons. One of my favourite episodes of the series is the third: Big Ben Strikes Again.
In this episode, the Mysterons threaten to destroy London. They do this by hijacking a vehicle carrying a nuclear device, and driving it to a car park. In the car park, the driver of the vehicle wakes up and turns the radio on. Then something weird happens: Big Ben strikes thirteen!
The driver turning on the radio. Good to know that BBC Radio 4 will still broadcast at 92-95FM in 2068.
Following this, the driver is knocked out again and wakes up in a side road somewhere. After hearing his story, Captain Blue works out that the car park must be 1500 yards away from Big Ben. Using this information, Captains Blue and Scarlet manage to track down the nuclear device and save the day.
A map of London with a circle of radius 1500 yards drawn on it.
After rewatching the episode recently, I realised that it would be possible to recreate this scene and hear Big Ben striking thirteen.

Where does Big Ben strike thirteen?

At the end of the episode, Captain Blue explains to Captain Scarlet that the effect was due to light travelling faster than sound: as the driver had the radio on, he could hear Ben's bongs both from the tower and through the radio. As radio waves travel faster than sound, the bongs over the radio can be heard earlier than the sound waves travelling through the air. Further from the tower, the gap between when the two bongs are heard is longer; and at just the right distance, the second bong on the radio will be heard at the same time as the first bong from the tower. This leads to the appearance of thirteen bongs: the first bong is just from the radio, the next eleven are both radio and from the tower, and the final bong is only from the tower.
Big Ben's bongs are approximately 4.2s apart, sound travels at 343m/s, and light travels at 3×108m/s (this is so fast that it could be assumed that the radio waves arrive instantly without changing the answer). Using these, we perform the following calculation:
$$\text{time difference} = \text{time for sound to arrive}-\text{time for light to arrive}$$ $$=\frac{\text{distance}}{\text{speed of sound}}-\frac{\text{distance}}{\text{speed of light}}$$ $$=\text{distance}\times\left(\frac1{\text{speed of sound}}-\frac1{\text{speed of light}}\right)$$ $$\text{distance}=\text{time difference}\div\left(\frac1{\text{speed of sound}}-\frac1{\text{speed of light}}\right)$$ $$=4.2\div\left(\frac1{343}-\frac1{3\times10^8}\right)$$ $$=1440\text{m}\text{ or }1574\text{ yards}$$
This is close to Captain Blue's calculation of 1500 yards (and to be fair to the Captain, he had to calculate it in his head in a few seconds). Plotting a circle of this radius centred at Big Ben gives the points where it may be possible to hear 13 bongs.
Again, the makers of Captain Scarlet got this right: their circle shown earlier is a very similar size to this one. To demonstrate that this does work (and with a little help from TD and her camera), I made the following video yesterday near Vauxhall station. I recommend using earphones to watch it as the later bongs are quite faint.
×3      ×2      ×4      ×3      ×4
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
Very late to this but how excellent! My Gerry Andersen experiences were at the start of his output...I even watched Stingray in black and white.
(anonymous)
×4   ×3   ×3   ×3   ×3     Reply
@g0mrb: Thanks for letting me know, I'll look into it...
Matthew
×3   ×4   ×4   ×4   ×4     Reply
There is no sound in this video, using Safari in iOS 12.1.1 Beta.
g0mrb
×4   ×5   ×4   ×4   ×4     Reply
This is awesome and wonderful. I salute you.
Ben Sparks
×10   ×5   ×5   ×4   ×4     Reply
Wow! This has made my weekend.
Tony Mann
×3   ×3   ×3   ×3   ×3     Reply
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "hparg" backwards in the box below (case sensitive):
 2015-08-27 
In 1961, Donald Michie built MENACE (Machine Educable Noughts And Crosses Engine), a machine capable of learning to be a better player of Noughts and Crosses (or Tic-Tac-Toe if you're American). As computers were less widely available at the time, MENACE was built from from 304 matchboxes.
Taken from Trial and error by Donald Michie [2]
The original MENACE.
To save you from the long task of building a copy of MENACE, I have written a JavaScript version of MENACE, which you can play against here.

How to play against MENACE

To reduce the number of matchboxes required to build it, MENACE always plays first. Each possible game position which MENACE could face is drawn on a matchbox. A range of coloured beads are placed in each box. Each colour corresponds to a possible move which MENACE could make from that position.
To make a move using MENACE, the box with the current board position must be found. The operator then shakes the box and opens it. MENACE plays in the position corresponding to the colour of the bead at the front of the box.
For example, in this game, the first matchbox is opened to reveal a red bead at its front. This means that MENACE (O) plays in the corner. The human player (X) then plays in the centre. To make its next move, MENACE's operator finds the matchbox with the current position on, then opens it. This time it gives a blue bead which means MENACE plays in the bottom middle.
The human player then plays bottom right. Again MENACE's operator finds the box for the current position, it gives an orange bead and MENACE plays in the left middle. Finally the human player wins by playing top right.
MENACE has been beaten, but all is not lost. MENACE can now learn from its mistakes to stop the happening again.

How MENACE learns

MENACE lost the game above, so the beads that were chosen are removed from the boxes. This means that MENACE will be less likely to pick the same colours again and has learned. If MENACE had won, three beads of the chosen colour would have been added to each box, encouraging MENACE to do the same again. If a game is a draw, one bead is added to each box.
Initially, MENACE begins with four beads of each colour in the first move box, three in the third move boxes, two in the fifth move boxes and one in the final move boxes. Removing one bead from each box on losing means that later moves are more heavily discouraged. This helps MENACE learn more quickly, as the later moves are more likely to have led to the loss.
After a few games have been played, it is possible that some boxes may end up empty. If one of these boxes is to be used, then MENACE resigns. When playing against skilled players, it is possible that the first move box runs out of beads. In this case, MENACE should be reset with more beads in the earlier boxes to give it more time to learn before it starts resigning.

How MENACE performs

In Donald Michie's original tournament against MENACE, which lasted 220 games and 16 hours, MENACE drew consistently after 20 games.
Taken from Trial and error by Donald Michie [2]
Graph showing MENACE's performance in the original tournament. Edit: Added the redrawn graph on the left.
After a while, Michie tried playing some more unusual games. For a while he was able to defeat MENACE, but MENACE quickly learnt to stop losing. You can read more about the original MENACE in A matchbox game learning-machine by Martin Gardner [1] and Trial and error by Donald Michie [2].
You may like to experiment with different tactics against MENACE yourself.

Play against MENACE

I have written a JavaScript implemenation of MENACE for you to play against. The source code for this implementation is available on GitHub.
When playing this version of MENACE, the contents of the matchboxes are shown on the right hand side of the page. The numbers shown on the boxes show how many beads corresponding to that move remain in the box. The red numbers show which beads have been picked in the current game.
The initial numbers of beads in the boxes and the incentives can be adjusted by clicking Adjust MENACE's settings above the matchboxes. My version of MENACE starts with more beads in each box than the original MENACE to prevent the early boxes from running out of beads, causing MENACE to resign.
Additionally, next to the board, you can set MENACE to play against random, or a player 2 version of MENACE.
Edit: After hearing me do a lightning talk about MENACE at CCC, Oliver Child built a copy of MENACE. Here are some pictures he sent me:
Edit: Oliver has written about MENACE and the version he built in issue 03 of Chalkdust Magazine.
Edit: Inspired by Oliver, I have built my own MENACE. I took it to the MathsJam Conference 2016. It looks like this:

A matchbox game learning-machine by Martin Gardner. Scientific American, March 1962. [link]
Trial and error by Donald Michie. Penguin Science Survey, 1961.
×30      ×28      ×26      ×22      ×24
(Click on one of these icons to react to this blog post)

You might also enjoy...

Comments

Comments in green were written by me. Comments in blue were not written by me.
This is very neat. I wonder how long it would take to use that many matches to get all those match boxes.
Duke Nukem
×14   ×13   ×6   ×3   ×3     Reply
"When playing against skilled players, it is possible that the first move box runs out of beads. In this case, MENACE should be reset with more beads in the earlier boxes to give it more time to learn before it starts resigning."

If someone were doing this, you could do this automatically to avoid the perception or temptation of the operator to help it along. Instead of "oh, it's dead, let's repopulate the boxes", you could just make it part of the inter-game cleanup, like a garbage collection routine. After all the bead deleting/adding whatever, but before the next game starts, look at all the boxes, make sure that each box contains at least one of each color. Now this weakens the learning algorithm moderately, but it guarantees that it will never get stuck.
(anonymous)
×3   ×7   ×3   ×4   ×4     Reply
@(anonymous): Yes, those boxes are for O being MENACE and MENACE playing first
Matthew
×4   ×3   ×2   ×2   ×2     Reply
@Matthew: Thank you for such a quick response. Just to let you know that that link did not work after .../tree/master/output, but I managed to search around for the right files :). In these files MENACE plays the Nought right? and the user plays the Cross?
(anonymous)
×2   ×2   ×2   ×2   ×2     Reply
@Finlay: You can find them at https://github.com/mscroggs/MENACE-pdf.... The files boxes0.pdf to boxes3.pdf are the boxes for a MENACE that plays first.
Matthew
×2   ×4   ×3   ×2   ×3     Reply
 Add a Comment 


I will only use your email address to reply to your comment (if a reply is needed).

Allowed HTML tags: <br> <a> <small> <b> <i> <s> <sup> <sub> <u> <spoiler> <ul> <ol> <li> <logo>
To prove you are not a spam bot, please type "sexa" backwards in the box below (case sensitive):

Archive

Show me a random blog post
 2024 

Nov 2024

Christmas (2024) is coming!

Feb 2024

Zines, pt. 2

Jan 2024

Christmas (2023) is over
 2023 
▼ show ▼
 2022 
▼ show ▼
 2021 
▼ show ▼
 2020 
▼ show ▼
 2019 
▼ show ▼
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

palindromes javascript cross stitch radio 4 weak imposition golden ratio books convergence tennis video games guest posts newcastle national lottery christmas card map projections determinants plastic ratio folding tube maps arithmetic football game of life hexapawn errors craft geometry sorting raspberry pi nine men's morris simultaneous equations braiding captain scarlet squares manchester science festival numbers noughts and crosses standard deviation wool computational complexity pascal's triangle matrix of cofactors martin gardner matrix multiplication tmip folding paper misleading statistics programming accuracy the aperiodical gather town oeis cambridge rhombicuboctahedron a gamut of games sobolev spaces realhats chalkdust magazine go phd gaussian elimination logic data electromagnetic field propositional calculus dinosaurs data visualisation dataset news zines european cup draughts royal institution binary flexagons coins speed pi approximation day matrix of minors quadrilaterals menace reuleaux polygons python geogebra gerry anderson edinburgh inverse matrices probability finite element method chess mathslogicbot inline code mathsteroids graph theory mean bodmas chebyshev crochet preconditioning approximation runge's phenomenon polynomials rugby interpolation advent calendar dragon curves asteroids bempp pythagoras 24 hour maths final fantasy php countdown machine learning databet logs recursion frobel pac-man live stream turtles pi platonic solids finite group hannah fry london hats fonts youtube curvature crossnumber talking maths in public datasaurus dozen light games error bars royal baby puzzles ternary estimation anscombe's quartet bubble bobble logo ucl game show probability hyperbolic surfaces manchester dates triangles golden spiral fence posts latex reddit numerical analysis boundary element methods london underground pizza cutting world cup big internet math-off matrices sport harriss spiral signorini conditions sound correlation matt parker weather station stickers christmas statistics people maths exponential growth fractals wave scattering graphs mathsjam stirling numbers trigonometry

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2012–2024