tmscli 0.3.1__tar.gz → 0.3.3__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.3.1
3
+ Version: 0.3.3
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.3.1"
7
+ version = "0.3.3"
8
8
  description = "runs minesweeper in your terminal, type rules for how to play"
9
9
  dependencies = []
10
10
 
@@ -70,7 +70,7 @@
70
70
  </main>
71
71
 
72
72
  <footer>
73
- <p>tmscli · PyPI module · lorem ipsum placeholder</p>
73
+ <p>tmscli · PyPI module</p>
74
74
  </footer>
75
75
  </body>
76
76
  </html>
@@ -51,20 +51,14 @@
51
51
  <pre><code>uf x y</code></pre>
52
52
  <p>unflags square (x,y)</p>
53
53
  <p>Note:</p>
54
- <p>&ensp;y-------&gt;
55
- <br>
56
- x
57
- <br>
58
- |
59
- <br>
60
- |
61
- <br>
62
- |
63
- <br>
64
- |
65
- <br>
66
- V
67
- </p>
54
+ <pre><code>
55
+ y----&gt;
56
+ x
57
+ |
58
+ |
59
+ |
60
+ V
61
+ </code></pre>
68
62
  <p>use <pre><code>tms -r</code></pre> for a full guide</p>
69
63
 
70
64
  </div>
@@ -81,9 +81,11 @@ class minesweeper():
81
81
  if self.check_death(board):
82
82
  print('GAME OVER')
83
83
  self.print_ending(board)
84
+ exit()
84
85
  elif self.check_success(board):
85
86
  print('YOU WIN')
86
87
  self.print_ending(board)
88
+ exit()
87
89
  def richochet(self,board,coord):
88
90
  x,y=coord
89
91
  board[x][y][3]=True
@@ -168,7 +170,7 @@ def run():
168
170
  def print_rules():
169
171
  print('''
170
172
  Minesweeper is a game where you uncover squares in a minefield, and discover where the mines are
171
- this version has a 9 x 9 board with 10 mines in it
173
+ this version has a 9 x 9 board with 10 mines in it.
172
174
  commands:
173
175
  uc x y = uncovers square (x,y)
174
176
  fl x y = flags square (x,y)
@@ -182,6 +184,11 @@ V
182
184
  Aim:
183
185
  uncover every square without a mine on it.
184
186
 
187
+ Symbols:
188
+ F = flagged
189
+ A space = covered (unknown)
190
+ A number = the number of mines around it
191
+ M = a mine (game over)
185
192
  If you step on a mine you lose, the number on the square is how many mines are around it (3 x 3 radius)
186
193
  ''')
187
- # run()
194
+ run()
@@ -17,9 +17,13 @@ echo "Staging changes..."
17
17
  git add .
18
18
 
19
19
  echo "Committing changes..."
20
- git commit -m "New version"
20
+ read reason
21
+ git commit -m "$reason"
21
22
 
22
23
  echo "Pushing changes to remote..."
23
24
  git push
24
25
 
26
+ echo "Updating current installed module"
27
+ pip install --upgrade tmscli
28
+
25
29
  echo "All steps completed successfully!"
File without changes
File without changes
File without changes
File without changes
File without changes