You need output each status after a click, like the real Mine Clearance - Floodfill when it's blank.
You should output 'N' if that area is still unknown. You should output the number of mines that occupy the surroundding eight grids.
If the player clicked the mine, you should output all the grids and output "fail". If the player cleared all the mines, you should output all the grids and output "success".2 5 5 5 0 1 1 0 0 0 0 0 1 0 1 1 0 1 1 0 0 1 0 0 1 1 1 1 0 1 1 2 2 3 3 4 4 5 5 1 5 5 1 1 1 0 0 0 0 0 1 0 1 1 0 1 1 0 0 1 0 0 1 1 1 1 0 1 1
1 N N N N N N N N N N N N N N N N N N N N N N N N 1 N N N N N 4 N N N N N N N N N N N N N N N N N N 1 N N N N N 4 N N N N N 4 N N N N N N N N N N N N 1 N N N N N 4 N N N N N 4 N N N N N 5 N N N N N N 1 N N N N N 4 N N N N N 4 N N N N N 5 N N N N N 1 1 N N N N N N N N N N N N N N N N N N N N N N N N fail
无
NE123123