From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tetris in LabView problem with move blocks

Hello.

I try to make Tetris in LabView.  I have problem with stop blocks on the last field and move blocks left and right.

Does anyone have an idea how to solve it?

0 Kudos
Message 1 of 4
(2,716 Views)

Well, first look at the all the posts here.

 

Now you need some kind of collision and boundary detection. You'll figure it out. 😄

Message 2 of 4
(2,680 Views)

Another tip, make it such that the occupied elements are FALSE and the available elements TRUE (you can change the T/F colors to get the desired visual). This way you can deal with out of bounds more easily, because indexing an element outside the valid range returns false and indicats that you can't go there.

Message 3 of 4
(2,667 Views)
0 Kudos
Message 4 of 4
(2,635 Views)