This thesis research on Visual c + + for development environment, the design and development of a minesweeper, its function is similar to Windows operating system bringing minesweeper. It firstly introduces the overall thinking and in-game throughout the game design process planning, and then introduced the minefield arrangement and the realization method of randomly generated landmines; Mainly introduces the game process each event processing, which the mouse events and remove not near the minefield square this two respects, the mouse event most the most to using the mouse is issued by information user's intention, thus to make corresponding action, and clear not near the minefield square by introducing an "recursive" this concept and make it simple.