21 lines
401 B
C++
21 lines
401 B
C++
|
// A game of minesweeper, written in one day.
|
||
|
//
|
||
|
// CONTROLS:
|
||
|
// Left mouse click - test tile for mine
|
||
|
// Right mouse click - mark tile with a flag or remove a flag
|
||
|
// 'R' key - reset the game
|
||
|
// Esc - exit game
|
||
|
|
||
|
#include "game.h"
|
||
|
|
||
|
#ifdef _DEBUG
|
||
|
#include <vld.h> // Visual Leak Detector
|
||
|
#endif
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
Game *game = new Game();
|
||
|
game->MainLoop();
|
||
|
delete game;
|
||
|
return 0;
|
||
|
}
|