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.

Western PA LabVIEW Users

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 3 Hour Coding Challenge! LabVIEW BOGGLE(TM)

Boggle is a trademark of Parker Brothers.

LabVIEW Boggle - Loggle.png

Greetings colleagues!

It was a slow day here in Pittsburgh. In an effort to "stay sharp" and "keep current".. I challenged myself to program a LabVIEW Boggle Game.

I'm least proud of the "find letter" VI. That ugly beast is the result of adding code piecemeal without planning ahead..!

Words are entered by clicking on the letters once you've started a new game.

Features not yet implemented (meaning they probably never will be):

1. Dictionary lookup for entered words

2. Automatic scoring

3. Repeat / network play to allow multiple players to go one after another or head to head

4. Autoscroll on the entered words indicator


Features that ARE implemented:

1. No repeat words

2. Only valid combinations of letters are allowed (new letters added must be adjacent to the last letter added)

3. Deselect option to undo your letter choices

4. Clear word if you get stuck and want to start the word over again

5. word tracking - list is made of all previously entered words

6. true to form - each letter is chosen by (figuratively) rolling a 6-faced die, and randomly placing the die in one of the 16 slots, die letters are taken from the actual game

7. Timer function to time the game, default is 180 seconds

Architecture choice:

Queued state machine with event handler

Total time spent programming:

3 hrs

Previous VIs used:

Random integer VI

7

HAPPY NEW YEAR!!

Evan

Total # of VIs:

0 Kudos
Message 1 of 1
(8,366 Views)