GoLang Solution For UVa Online Judge: 10279 - Mine Sweeper
GO Solution For UVa 10279 - Mine Sweeper. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.
Problem Description
The game Minesweeper is played on an n by n grid. In this grid are hidden m mines, each at a distinct grid location. The player repeatedly touches grid positions. If a position with a mine is touched, the mine explodes and the player loses. If a position not containing a mine is touched, an integer
...You can find the full details of the problem Mine Sweeper at UVa Online Judge
Sample Input
1 8 ...**..* ......*. ....*... ........ ........ .....*.. ...**.*. .....*.. xxx..... xxxx.... xxxx.... xxxxx... xxxxx... xxxxx... xxx..... xxxxx...
Sample Output
001..... 0013.... 0001.... 00011... 00001... 00123... 001..... 00123...
Solution: Please check the main.go snippet for the solution.
Solution originally posted at: Github by @codingsince1985
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.