"Mastermind" Escape Room Tech Puzzle (Patreon)
Content
Hi folks!
For my first ER tech puzzle of 2020, I've just made this tutorial explaining how to create your own "Mastermind" electronic puzzle game using an Arduino. Players must determine a secret code (which can be numbers, letters, or symbols) by making a series of guesses. After each guess, segments of a Neopixel WS2812B LED Ring light up to let them know the number of elements in their guess that were completely correct, and those that were in the secret code but appeared in the wrong position. By refining their subsequent guesses, players can determine the correct secret code. If you were to use this puzzle in an escape room, this code could be the combination to a 4-digit padlock or could trigger a relay to automatically de-activate an electronic maglock, for example.
I've made a few changes to the rules of the original Mastermind board game, and I talk about these in the first few minutes of the video. Although I was talking in the context of this specific game, when designing games for escape rooms I think it's always good to think about issues like accessibility (in this case, colour-blindness), and also whether it's appropriate to have constraints like limits on the number of guesses that players can make - how you would enforce that, or what the consequence would be. In general, I've found that if you take an existing game and move it into an escape room context, you often need to simplify it a lot!
In addition to visual feedback provided to players via the LED ring, the Arduino also creates a JSON data packet after each guess which is sent via the serial connection. This can be read by the serial in node of escape room control software such as Node-RED and used to show a panel on a gamesmaster's dashboard representing the state of the puzzle, any guesses made, and the feedback players received. This allows a GM in an control room to track the players' progress throughout the room, which puzzles they have solved, and give them appropriate hints if the get stuck. If you don't have or use such a system, that's fine - the game will work completely fine standalone!
Timings
00:00-04:50 Introduction, Demonstration, and Design
04:51-11:16 Wiring
11:17-37:27 Arduino Code
37:28-41:12 Integration with Node-RED Escape Room Control Software
41:13-42:08 Wrap-up
Components Used
Arduino Nano: https://www.banggood.com/custlink/mDmvNgpA7O
MAX7219 4x 8x8 Matrix Display: https://www.banggood.com/custlink/GDvKsgCMKm
WS2812B 24LED "Neopixel" ring: https://www.banggood.com/custlink/K3KmngpAwf
5V relay module: https://www.banggood.com/custlink/mDD3bOqeP5
12V cabinet-style failsafe maglock: https://www.banggood.com/custlink/vvmmNaz4Sm
Arcade pushbutton switch: https://www.banggood.com/custlink/GKvKb4JQw5
Arduino Code, wiring diagrams, and Node-RED flow
https://drive.google.com/open?id=1rjzWVPaoHp8DyLJFB64yIjGb7ENUtQC-
As always, thankyou for your support, and please ask if you have any questions!