Coder Social home page Coder Social logo

sudoku_on_labview's Introduction

Sudoku_on_Labview

Implementation of a Sudoku game using Labview software.

Reference:

This game was implemented by following this model: https://forums.ni.com/t5/Example-Code/Simple-Sudoku-Game-Using-LabVIEW/ta-p/3508428

Goal:

Solving this puzzle:

Sudoku image

Interface (HIM):

Here is a look of the game interface:

HIM

Digits color code:

  • The cases with black digit are present by default.
  • The one in green is a number entered by the player and a good guess.
  • The one in red is a number entered by the player and a wrong guess.

Block diagram:

The block diagram is constituated of a while loop to allow the player to have a continuous game, this block contains an event structure with 2 states:

State 0:

Here is a look of the block diagram when the player changes the value of one of the sudoku cases:

State 0

Steps:

  • The event structure will be activated for any string control modification in the sudoku grid and run the state 0.
  • The name of the activated string control corresponds to its position in the grid and its value will be compared to the corresponding index value in the reference array.
  • The first case strucutre will verify if the case is not empty.
  • The inner case structure will verify if the reference value and the player value are identical: if true -> green, if false -> red.

State 1:

Here is a look of the block diagram when the player clicks on the restart button:

State 1

Steps:

  • When the player is pressing the restart button, the event structure will run the state 1.
  • The VI will be reset to its initial state.

sudoku_on_labview's People

Contributors

pierre-cng avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.