Hi... I am building a simple game and I need some help here...

Let's just say that I am making a tetris-like game... The basic thing I have to check 
is if the blocks are same color or not... I'm using 5X5 matrix here... 
The basic things that I have to check in this game is to see if any three(four and 
five) consecutive blocks in any direction within the matrix have the same value or 
not... And I also check if any five(seven and nine) blocks are making any cross shape 
with same value and so on...
Currently I am just using simple if statement to check all of occurence... but I think 
there should be some simple method that I could use rather than using if statements on 
all occasions...
Can someone help me out here???

TIA
Jason

-- 

_______________________________________________
Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to