You can buy Minesweeper code in c++ language at the inexpensive price. You can also buy C++ code of game with SFML header for good interface and mouse clicks to play the game like original one. All the checks are very good in the game and I hope, you will like it.