Example Code

MASTERMIND: The Ultimate Code Breaking Game

Code and Documents

Attachment

Download All

Overview
This example VI demonstrates the use of Event Structure to duplicate the mastermind code-breaking game.

Description

The Mastermind code-breaking game was invented in 1970 by Mordecai Meirowitz, an Israeli postmaster and telecommunications expert. It is a challenging game that has always been popular with Engineers and Scientists, due to its reliance on logical thinking. I have replicated the game in LabVIEW (something, fittingly, that is also popular with Engineers and Scientists)

 

Requirements

  • LabVIEW 2012 (or compatible)
  • Report Generation Toolkit

 

Steps to Implement or Execute Code

  1. Open the project “MastermindProject.lvproj”
  2. Open the VI " Mastermind 2012 NIVerified.vi"
  3. Run the VI.
  4. Click 'Play' button and enjoy the game.

 

Additional Information or References
VI Block Diagram

Block Diagram.png

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Rich Roberts
Senior Marketing Engineer, National Instruments
Connect on LinkedIn: https://www.linkedin.com/in/richard-roberts-4176a27b/

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Tokyghy
Member
Member
on

this is good game

but, when the "epic fail image" pops up, if i just close the window in the cross, the program stucks and need to be aborted..

just a comment jeje

thanks for sharing

spokker
Member
Member
on

some while ago, i did implement another variant of it (4 digit number)...