I’ve created Mine Sweeper in UE4 by c++ that you can learn how I used Flood-fill algorithm to find how the tiles are connected to each other and also how to dynamically make tiles easily.
*Clean Code
*Generating the grid Dynamically
*Win / Lose Condition
*3D Space
*Timer / Flag
*Simple UI
Thanks for your support.