tmscli 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: tmscli
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: runs minesweeper in your terminal, type rules for how to play
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "tmscli"
7
- version = "0.2.0"
7
+ version = "0.2.1"
8
8
  description = "runs minesweeper in your terminal, type rules for how to play"
9
9
  dependencies = []
10
10
 
@@ -50,8 +50,9 @@ class minesweeper():
50
50
  for k in range(-1,2):
51
51
  for l in range(-1,2):
52
52
  try:
53
- if board[i+k][j+l][2]=='M':
54
- c+=1
53
+ if (i+k >=0) and (j+l >=0):
54
+ if board[i+k][j+l][2]=='M':
55
+ c+=1
55
56
  except:
56
57
  pass
57
58
  board[i][j][2]=c
File without changes
File without changes