tmscli 0.2.7__tar.gz → 0.2.9__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.
|
@@ -104,7 +104,7 @@ class minesweeper():
|
|
|
104
104
|
|
|
105
105
|
return board
|
|
106
106
|
|
|
107
|
-
terminal_minesweeper=minesweeper(9,
|
|
107
|
+
terminal_minesweeper=minesweeper(9,5)
|
|
108
108
|
# terminal_minesweeper.print_board(board)
|
|
109
109
|
def main_loop(board):
|
|
110
110
|
while True:
|
|
@@ -146,11 +146,19 @@ def run():
|
|
|
146
146
|
default=9,
|
|
147
147
|
help='set size to x'
|
|
148
148
|
)
|
|
149
|
+
p.add_argument(
|
|
150
|
+
'-m','--mine_num',
|
|
151
|
+
type=int,
|
|
152
|
+
default=5,
|
|
153
|
+
help='set number of mines to x'
|
|
154
|
+
)
|
|
149
155
|
args=p.parse_args()
|
|
150
156
|
if args.rules:
|
|
151
157
|
print_rules()
|
|
152
158
|
if args.size:
|
|
153
159
|
terminal_minesweeper.size=args.size
|
|
160
|
+
if args.mine_num:
|
|
161
|
+
terminal_minesweeper.num=args.mine_num
|
|
154
162
|
mines=terminal_minesweeper.get_mines()
|
|
155
163
|
board=terminal_minesweeper.create_starting_board(mines)
|
|
156
164
|
main_loop(board)
|
tmscli-0.2.9/update.sh
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# 1. Start all three processes in the background simultaneously
|
|
4
|
+
echo "Starting tasks in parallel..."
|
|
5
|
+
|
|
6
|
+
hatch build &
|
|
7
|
+
PID_BUILD=$!
|
|
8
|
+
|
|
9
|
+
hatch publish &
|
|
10
|
+
PID_PASS=$!
|
|
11
|
+
|
|
12
|
+
# Replace 'pip install --upgrade ...' with your actual upgrade command if different
|
|
13
|
+
pip install --upgrade tmscli&
|
|
14
|
+
PID_PUBLISH=$!
|
|
15
|
+
|
|
16
|
+
# 2. Wait for all background processes to complete
|
|
17
|
+
wait $PID_BUILD $PID_PUBLISH $PID_UPGRADE
|
|
18
|
+
|
|
19
|
+
echo "All tasks finished!"
|
|
File without changes
|
|
File without changes
|