From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

2D Array Memory Game Generator

Code and Documents

Attachment

Download All

Overview

This example VI demonstrates the method to generate a 2D Array Memory game.

 

Description

This example first generates a sequence of numbers in sets of 2 i.e. 1 1, 2 2, 3 3, 4 4 then randomizes its placement within a growable 2D array.

 

Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Open the VI " Shuffle Card Deck 2012 NIVerified.vi".
  2. Input the memory game size.
  3. Run the program.

 

Additional Information or References
VI Snippet

Block Diagram.png

 

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

 

Applications Engineer

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