How to find match in 4 in a Row Game.
Hello everyone,
May I request a problem, I'm currently creating 4 in a Row style game. How can I check if it is 4 object in a row or column or crossing? I've done object is falling and player turn, player one and player two. I've this problem to check win or lose. Please help me. Sorry for my bad English.
Please explain me possible technique and where can I search for questions.
Thank You.
Answer by Sorskoot · Feb 19, 2016 at 12:05 PM
Here's some pseudo code that might help you out. It basically loops over the 4 possible directions a match can occur, horizontal, vertical, diagonal up and diagonal down.
Your answer
Follow this Question
Related Questions
Delete a specific GameObject (with tag) on a Specific Vector2 Location 0 Answers
Code wont work, even though the logic seems right to me 0 Answers
Making square of blocks in match3 C# 1 Answer
Script function being applied to everything it's attached to logic error 2 Answers
change scripts to show an image to spell 0 Answers