Example Code

Simple Sudoku Game Using 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

Description

Overview

This VI simulate Sudoku game by stored puzzles.

 

Description

As a new intern at NI, and completely new to LabVIEW, I took a 3.5 day LabVIEW training course. On the last day, we had the opportunity to use what we had learned to make an application of our choice. I chose to make a Sudoku game. Nothing too complicated, and so far it only has three stored puzzles: 1 Easy, 1 Medium, 1 Hard. Each level of difficulty has its own VI, and the solution for that level is hardcoded into the block diagram. On the front panel, the user can enter a number in each slot. If the number entered matches that of the solution, the block is bordered in green. Otherwise, the block is bordered in red. The user can choose to restart the puzzle, which returns all number blocks to their original value.

 

Requirements

Software:

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

1. Run the VI.
2. Select Difficulties and start playing.

 

Additional Information or Resources

 

2012.png

*UPDATE*

6/22/2010: I have uploaded the project as a Zip file. Download the Zip file. Feel free to explore the source code. The main VI is Sudoku.vi. You can run that and then choose the difficulty to play.

Or you can download Sudoku.exe and simply run it to play the game. To run the .exe, you only need the LabVIEW Run-time Engine (free download)

 

 

**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.

Comments
RER
NI Employee (retired)
on

Hey Framran!! This sounds like an awesome app. However, I am unable to open it. Was it saved in a beta version of LabVIEW?

If you could repost the apps in a previous version, you would make the community very happy!

Thanks!

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

There is an 88 instead of 8 in Medium.vi, string 6 7.