Example Code

Guess Who Game

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

Overview
The Guess Who Game VI emulates the popular Guess Who board game. The player attempts to guess the name of one person out of sixteen who has been selected beforehand.

 
Description
To start, the player runs the VI. The player then enters one of the names of the people that are displayed in the image into the "Answer" box and presses "Guess!" to enter their answer. If the guess was correct (capitalization matters), a dialog box will be displayed stating that the player has won. If the player guesses incorrectly, a clue, read from a text file, will be displayed, allowing the player to narrow down the possible suspects.

 
Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Run " Guess Who.vi"

 

Additional Information or References
VI Snippet

 5-7.png

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

 

 

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