LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW Tetris

I've built a LV Tetris using LVOOP.

It uses 2D array of color box as the main GUI.

It has most of the normal functions that you would find in a normal Tetris.

 

Check it out and please comment. Smiley Tongue

 

http://www.youtube.com/watch?v=8aZZNihoD5o

Message 1 of 7
(5,022 Views)

Really good, Appreciate your work. If you can hide the "milliseconds to wait" control and change/hide the window title bar it would be more attractive.

 

Do you have the code uploaded in the Developer community? If you plan to do it please post for previous versions also.

 

Good luck

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 7
(5,004 Views)

Nice.

 

For me the only real problem is that you used Pachelbel's canon as the music (which is a great piece, and the topic of a fun stand up piece), when proper Tetris music should be either Koberniki, Bach's minuet or the third one.

 

http://www.youtube.com/watch?v=78FJwbHYYxc

http://www.youtube.com/watch?v=NmCCQxVBfyM


___________________
Try to take over the world!
0 Kudos
Message 3 of 7
(4,988 Views)

nice work ! how was the experience in using OOP over the non-OOP way? Each 4-cell block is an object inherited from an abstract block class? Just curious as to how you designed it.

TailOfGon
Certified LabVIEW Architect 2013
0 Kudos
Message 4 of 7
(4,969 Views)

Here's the Project file. 

 

 

I treated each brick as 2D 4x4 boolean array, not as indivisual object.

Although it would have been nice to treat each brick as an object, but I didn't do it. Smiley Indifferent

It would have made parts of the code simplier, but it would also mean that I have to deal with a lot more classis.

So instead, I went on a design route where I kept most of things that should be object as object (ie. brick and playfield).

And all other details are added on as non-objects.

 

The guts of the objects are messy and not documented at all.

So please review the code with extreme causion (you may get very confused.)

 

The tricky part is to keep track of the color of each brick.

I added this feature as an after thought, the original design was just to use 2D boolean array (colorless, only T/F) as the playfield.

So the color portion of the code is a mess. Smiley LOL 

 

0 Kudos
Message 5 of 7
(4,960 Views)

Yeah! Didn't think of that! Thanks a lot!

I'll include some cheesy MIDI Tetris classis backgroud music for the next build. Smiley Wink

0 Kudos
Message 6 of 7
(4,928 Views)

Actor framework may be a good candidate for the next round of Tetris. 

0 Kudos
Message 7 of 7
(4,830 Views)