Minsweeper Game
Source code: #include<graphics.h> #include<conio.h> #include<stdlib.h> #include<dos.h> #define ROWMAX 10 #define COLUMNMAX 10 //////////////////////////// union REGS i,o; enum Bool{false,true}; void InitMouse(); void ShowMouse(); void HideMouse(); int GetX(); int GetY(); int GetB(); int ButtonStatus; void OnLButtonDown(int x,int y); void OnMouseMove(int Click,int x,int y); void OnLButtonUp(int x,int y); int ButtonMoveStatus; int PrevX,PrevY; //////////////////////////////////// void ExplodeAllMines(); void DisplayNearMines(int,int); void WinGame(); void StartGame(); Bool Check(); Bool bGameOverflag; class CBrick { public: int Left,Top,Right,Bottom; int Width,Height; Bool bBombFlag; int NearMineCount; Bool bCheckedFlag; CBrick() { Width=Height=30; ...