Example Code

Simon Game for LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Download All

Description

1. Overview

This is a neat implementation of the game "Simon" done in LabVIEW. It is a fairly simple approach to the game. Anyone looking for a practical application of event structures might find this interesting.

 

2. Description

Simon is an electronic game of memory skill invented by Ralph H. Baer and Howard J. Morrison, with software programming by Lenny Cope. The device creates a series of tones and lights and requires a user to repeat the series. If the user succeeds the series becomes progressively longer and more complex. Once the user fails, the game is over. The original version was manufactured and distributed by Milton Bradley but after they went out of business, the product was taken over by Hasbro. Much of the assembly language was written by Charles Kapps, who taught computer science at Temple University and also wrote one of the first books on the theory of computer programming. Simon was launched in 1978 at Studio 54 in New York City and was an immediate success, becoming a pop culture symbol of the 1970s and 1980s.

 

3. Requirements

  • NI LabVIEW Base Development System 2012 or above.

 

4. Steps to Implement or Execute Code

  1. Download and open the project "Simon Game LabVIEW 2012 NIVerified.lvproj"
  2. Run the VI: "Simon Main.vi"
  3. Select a difficulty level.
  4. The game blinks a sequence of LEDs. Play back the sequence before time runs out!
  5. The sequence continues building. See how many rounds you can play!

 

5. Additional Information or References

Simon Game FP.PNG

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

Wes Pierce
Principal Engineer
Pierce Controls

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