Minesweeper Game Bot
@Minesweeper_gaming_botthis is a Telegram bot for playing Minesweeper.
Minesweeper is a classic computer game that was popularized in the 1990s by Microsoft through its inclusion as a built-in extra in Windows. It was possibly based on a game called Mined-Out invented by Ian Andrew in 1983.
How to play Minesweeper
The gameplay of Minesweeper could be called deceptively simple. It consists of a grid of concealed squares. You click on the squares one at a time to reveal what is under each one — a mine, a number indicating how many mines are in the surrounding squares, or nothing at all. Clicking on a mine ends the game — you only get one life in Minesweeper. Winning the game involves using the numbered squares to deduce where the mines are, and marking them, while exposing all the other squares.
Three different kinds of square
When you start the game, the playing board is completely covered. Under each uncovered square, there is one of three things: a mine, which will end your game if you “Open” it; a number, which indicates how many mines are in the squares surrounding that square; or nothing. The game is played by using the numbered squares to deduce where the squares with the mines are and marking them by “Set Flag” on them. As you go along, you “Open” on all the non-mine squares to clear the board and win the game.
“Open” vs “Set Flag”
In Minesweeper, there is an important difference between open a square and set flag on it. Open - will uncover the square, so you have to be careful to only do it when you are sure what is below is not a mine — open on a mine is game over. Set flag on a square will toggle between marking the square as a mine and reverting to no mark. In Minesweeper, you set flag where you believe a mine is, and you open where you think it is safe to reveal more of the board.
Starting the game
We don’t want you to hit a mine on your first square, so the game is designed to only determine its layout of which squares are empty and which have mines once you have clicked on the first square. Your first choice will always be a non-mine square. Once you open a square, the mines are set in place and the game begins in earnest.