diff --git a/kashaf_jabeen.py b/kashaf_jabeen.py new file mode 100644 index 0000000..eca1119 --- /dev/null +++ b/kashaf_jabeen.py @@ -0,0 +1,47 @@ +def minesweeper(A): + #code that coverts the test matrix into desired output + rows=len(A) + cols=len(A[0]) + A=[list(A[i]) for i in range(rows)] + + for i in range(rows): + for j in range(cols): + if A[i][j] != "X": + counter=0 + for k in range(i-1, i+2): + for l in range(j-1, j+2): + if (-1