public static char CountAtIndex(Board board, int i) { if (board.IsMine(i)) { return('*'); } var count = 0; if (board.IsMine(i - 1)) { count++; } if (board.IsMine(i + 1)) { count++; } return(count.ToString()[0]); }