From f27bd686629cdfbd65f1a5099304aec6ce078990 Mon Sep 17 00:00:00 2001 From: KashafJabeen8 Date: Tue, 21 Feb 2023 05:08:55 +0500 Subject: [PATCH 1/3] added kashaf_jabeen file --- kashaf_jabeen.py | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 kashaf_jabeen.py diff --git a/kashaf_jabeen.py b/kashaf_jabeen.py new file mode 100644 index 0000000..e69de29 From 8350f2ad14add0f2fed58184e47fb283dfbad43c Mon Sep 17 00:00:00 2001 From: KashafJabeen8 Date: Tue, 21 Feb 2023 18:29:37 +0500 Subject: [PATCH 2/3] added function for minesweeper game --- kashaf_jabeen.py | 66 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/kashaf_jabeen.py b/kashaf_jabeen.py index e69de29..abe45bd 100644 --- a/kashaf_jabeen.py +++ b/kashaf_jabeen.py @@ -0,0 +1,66 @@ +# def minesweeper(A): + +# 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 not A[i][j]=="X": +# counter=0 +# for k in range(i-1,i+2): +# for l in range(j-1, j+2): +# if (-1 Date: Tue, 21 Feb 2023 18:39:55 +0500 Subject: [PATCH 3/3] updated --- kashaf_jabeen.py | 45 +++++++++++++-------------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/kashaf_jabeen.py b/kashaf_jabeen.py index abe45bd..eca1119 100644 --- a/kashaf_jabeen.py +++ b/kashaf_jabeen.py @@ -1,27 +1,8 @@ -# def minesweeper(A): - -# 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 not A[i][j]=="X": -# counter=0 -# for k in range(i-1,i+2): -# for l in range(j-1, j+2): -# if (-1