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.
- {tmscli-0.3.1 → tmscli-0.3.3}/PKG-INFO +1 -1
- {tmscli-0.3.1 → tmscli-0.3.3}/pyproject.toml +1 -1
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/about.html +1 -1
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/install.html +8 -14
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/main.py +9 -2
- {tmscli-0.3.1 → tmscli-0.3.3}/update.sh +5 -1
- {tmscli-0.3.1 → tmscli-0.3.3}/README.md +0 -0
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/.gitkeep +0 -0
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/__init__.py +0 -0
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/index.html +0 -0
- {tmscli-0.3.1 → tmscli-0.3.3}/src/tmscli/style.css +0 -0
|
@@ -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
|
-
<
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
|
63
|
-
<br>
|
|
64
|
-
|
|
|
65
|
-
<br>
|
|
66
|
-
V
|
|
67
|
-
</p>
|
|
54
|
+
<pre><code>
|
|
55
|
+
y---->
|
|
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
|
-
|
|
194
|
+
run()
|
|
@@ -17,9 +17,13 @@ echo "Staging changes..."
|
|
|
17
17
|
git add .
|
|
18
18
|
|
|
19
19
|
echo "Committing changes..."
|
|
20
|
-
|
|
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
|