hasnain_razwi
Member
hi once again. how does a flood fill algorithm work. ive heard about it but never seen it in action. i need to use something like it in vb.net code for a minesweerper game. i have created a two dimensional array of buttons. there are a total of 81 buttons (8,8) i.e 9 columns and 9 rows. i need to check how many mines there are adjacent to the button that i click on. so i want to search for mines all around my button and then expand the search onwards. any advice on how this can be done?
many thanks.
many thanks.