Seeking 2D Match 3 Puzzle Sourcecode (B3D)

Miscellaneous Forums/General Discussion/Seeking 2D Match 3 Puzzle Sourcecode (B3D)

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Frank, I read a few business magazines in some doctors waiting rooms, so obviously Im an expert at business...

The story you described re:pickles is how a lot of succesful businesses start actually.

As for the match3 game, all you have to do is go through all the columns e.g.
for x=1 to 8
check_column(x)
next

function check_column(num)
for this_colour=1 to 4 ;assuming you have 4 types of tile
for x=1 to 8
if colour_of_piece(num,x)=this_colour
matched_tiles=matched_tiles+1
endif

if matched_tiles>2
;we have a row gentlemen
endif

next
next
end function

the code above isnt perfect, there are still bugs to work out,