mscroggs.co.uk
mscroggs.co.uk

subscribe

Blog

 2017-11-14 
A few weeks ago, I took the copy of MENACE that I built to Manchester Science Festival, where it played around 300 games against the public while learning to play Noughts and Crosses. The group of us operating MENACE for the weekend included Matt Parker, who made two videos about it. Special thanks go to Matt, plus Katie Steckles, Alison Clarke, Andrew Taylor, Ashley Frankland, David Williams, Paul Taylor, Sam Headleand, Trent Burton, and Zoe Griffiths for helping to operate MENACE for the weekend.
As my original post about MENACE explains in more detail, MENACE is a machine built from 304 matchboxes that learns to play Noughts and Crosses. Each box displays a possible position that the machine can face and contains coloured beads that correspond to the moves it could make. At the end of each game, beads are added or removed depending on the outcome to teach MENACE to play better.

Saturday

On Saturday, MENACE was set up with 8 beads of each colour in the first move box; 3 of each colour in the second move boxes; 2 of each colour in third move boxes; and 1 of each colour in the fourth move boxes. I had only included one copy of moves that are the same due to symmetry.
The plot below shows the number of beads in MENACE's first box as the day progressed.

Sunday

Originally, we were planning to let MENACE learn over the course of both days, but it learned more quickly than we had expected on Saturday, so we reset is on Sunday, but set it up slightly differently. On Sunday, MENACE was set up with 4 beads of each colour in the first move box; 3 of each colour in the second move boxes; 2 of each colour in third move boxes; and 1 of each colour in the fourth move boxes. This time, we left all the beads in the boxes and didn't remove any due to symmetry.
The plot below shows the number of beads in MENACE's first box as the day progressed.

The data

You can download the full set of data that we collected over the weekend here. This includes the first two moves and outcomes of all the games over the two days, plus the number of beads in each box at the end of each day. If you do something interesting (or non-interesting) with the data, let me know!

Similar posts

MENACE
Building MENACEs for other games
MENACE in fiction
The Mathematical Games of Martin Gardner

Comments

Comments in green were written by me. Comments in blue were not written by me.
 2018-11-16 
WRT the comment 2017-11-17, and exactly one year later, I had the same thing happen whilst running MENACE in a 'Resign' loop for a few hours, unattended. When I returned, the orange overlay had appeared, making the screen quite difficult to read on an iPad.
Reply
g0mrb
 2018-02-14 
On the JavaScript version, MENACE2 (a second version of MENACE which learns in the same way, to play against the original) keeps setting the 6th move as NaN, meaning it cannot function. Is there a fix for this?
Reply
Lambert
 2017-11-22 
what would happen if you loaded the boxes slightly differently. if you started with one bead corresponding to each move in each box. if the bead caused the machine to lose you remove only that bead. if the game draws you leave the bead in play if the bead causes a win you put an extra bead in each of the boxes that led to the win. if the box becomes empty you remove the bead that lead to that result from the box before
Reply
Ian
 2017-11-17 
Hi, I was playing with MENACE, and after a while the page redrew with a Dragon Curves design over the top. MENACE was still working alright but it was difficult to see what I was doing due to the overlay. I did a screen capture of it if you want to see it.
Reply
Russ
 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>
To prove you are not a spam bot, please type "factor" in the box below (case sensitive):

Archive

Show me a random blog post
 2019 

Sep 2019

A non-converging LaTeX document
TMiP 2019 treasure punt

Jul 2019

Big Internet Math-Off stickers 2019

Jun 2019

Proving a conjecture

Apr 2019

Harriss and other spirals

Mar 2019

realhats

Jan 2019

Christmas (2018) is over
 2018 
▼ show ▼
 2017 
▼ show ▼
 2016 
▼ show ▼
 2015 
▼ show ▼
 2014 
▼ show ▼
 2013 
▼ show ▼
 2012 
▼ show ▼

Tags

php accuracy weather station london interpolation sorting machine learning pac-man christmas sound a gamut of games reddit martin gardner tennis electromagnetic field christmas card football arithmetic platonic solids binary game show probability go harriss spiral games dataset palindromes chalkdust magazine stickers golden spiral propositional calculus final fantasy approximation mathsteroids map projections nine men's morris trigonometry manchester science festival golden ratio chess captain scarlet books ternary the aperiodical curvature rugby triangles inline code folding tube maps bubble bobble gerry anderson cambridge news flexagons countdown light hexapawn coins big internet math-off speed puzzles latex chebyshev sport asteroids raspberry pi realhats graph theory logic talking maths in public python royal baby people maths fractals data hats craft twitter pizza cutting statistics european cup draughts pythagoras mathsjam game of life rhombicuboctahedron probability error bars cross stitch dragon curves estimation javascript reuleaux polygons manchester dates london underground geometry braiding menace plastic ratio folding paper oeis mathslogicbot polynomials video games matt parker national lottery tmip misleading statistics programming world cup frobel wool bodmas noughts and crosses radio 4

Archive

Show me a random blog post
▼ show ▼
© Matthew Scroggs 2019