Skip to content

Commit 74b8bc1

Browse files
committed
3.1.9
1 parent 8a87881 commit 74b8bc1

6 files changed

Lines changed: 22 additions & 14 deletions

File tree

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# MetaSweeper-v3.1.8 —— project with 8 modes of minesweeper, third generation minesweeper video player and high performance algorithm toolbox
1+
# MetaSweeper-v3.1.9 —— project with 8 modes of minesweeper, third generation minesweeper video player and high performance algorithm toolbox
22

3-
# 元扫雷v3.1.8 —— 包含8种模式的扫雷项目、第三代扫雷录像播放器及高性能算法工具箱
3+
# 元扫雷v3.1.9 —— 包含8种模式的扫雷项目、第三代扫雷录像播放器及高性能算法工具箱
44

55
[![MetaSweeper](https://img.shields.io/badge/MetaSweeper-v3.1.6-brightgreen.svg)](https://github.com/eee555/Solvable-Minesweeper)
66
[![stars](https://img.shields.io/github/stars/eee555/Solvable-Minesweeper)](https://github.com/eee555/Solvable-Minesweeper/stargazers)
@@ -9,7 +9,7 @@
99

1010
## 简介
1111

12-
元扫雷v3.1.8是由热爱扫雷的玩家开发的扫雷游戏。这个项目并非简单重复已有的工作,而是集中了一批扫雷游戏的现代化设计。
12+
元扫雷v3.1.9是由热爱扫雷的玩家开发的扫雷游戏。这个项目并非简单重复已有的工作,而是集中了一批扫雷游戏的现代化设计。
1313

1414
优势:
1515

@@ -39,7 +39,7 @@
3939

4040
## Introduction
4141

42-
Minesweeper v3.1.8 is a mineswering game developed by players who are passionate about the game. This project is not a simple repetition of existing work, but a concentration of modern design elements for minesweeper games.
42+
Minesweeper v3.1.9 is a mineswering game developed by players who are passionate about the game. This project is not a simple repetition of existing work, but a concentration of modern design elements for minesweeper games.
4343

4444
Advantages:
4545

@@ -155,10 +155,9 @@ Currently in the lengthy development phase, with updates approximately every 1 t
155155

156156
## 下载链接
157157

158-
### 正式版v3.1.8
158+
### 正式版v3.1.9
159159

160-
修复了7个bug,包括弱可猜模式可能踩雷;用设置修改尺寸时,布局出错;使用快捷键切换模式时,部分操作引发异常等。提高了对某种作弊手段的防御能力。升级了录像格式到evf-v0.3。
161-
链接:[https://eee555.lanzn.com/iLApV25lg8xg](https://eee555.lanzn.com/iLApV25lg8xg)
160+
修复了7个bug,包括弱可猜模式可能踩雷;用设置修改尺寸时,布局出错;使用快捷键切换模式时,部分操作引发异常等。计数器中可以使用"is_offical", "is_fair"来检查录像合法性。提高了对某种作弊手段的防御能力。升级了录像格式到evf-v0.3。
162161

163162
### 正式版v3.1.7:
164163

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pyQt5==5.15.7
2-
ms-toollib==1.4.9
2+
ms-toollib==1.4.10

src/gameScoreBoard.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ class gameScoreBoardManager():
7676
"cell4", "cell5", "cell6", "cell7", "cell8", "fps", "etime",
7777
"stnb", "rqp", "qg", "ioe", "thrp", "corr", "ce",
7878
"ce_s", "bbbv_solved", "bbbv_s", "op_solved", "isl_solved"]
79+
7980
# is_visible = False
8081
# 5、错误的表达式,一旦算出报错,永远不再算,显示error
8182
def __init__(self, r_path, score_board_path, game_setting_path, pix_size):

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def find_window(class_name, window_name):
9191
# bbbv_s, (op_solved), (isl_solved)
9292
# 录像静态类:bbbv,op, isl, cell0, cell1, cell2, cell3, cell4, cell5, cell6,
9393
# cell7, cell8, fps, (hizi)
94-
# 其他类:checksum_ok, race_designator, mode
94+
# 其他类:checksum_ok, race_designator, mode, is_offical, is_fair
9595

9696

9797

src/mineSweeperGUI.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,9 @@ def gameRestart(self, e = None): # 画界面,但是不埋雷,改数据而
487487
# self.label.setMouseTracking(False) # 鼠标未按下时,组织移动事件回调
488488

489489
self.score_board_manager.with_namespace({
490-
"checksum_ok": "--"
490+
"checksum_ok": "--",
491+
"is_official": "--",
492+
"is_fair": "--"
491493
})
492494

493495

@@ -501,6 +503,10 @@ def gameFinished(self): # 游戏结束画残局,改状态
501503
self.label.update()
502504
# 刷新计数器数值
503505
self.timeCount()
506+
self.score_board_manager.with_namespace({
507+
"is_official": self.is_official(),
508+
"is_fair": self.is_fair()
509+
})
504510
self.score_board_manager.show(self.label.ms_board, index_type = 2)
505511

506512
def gameWin(self): # 成功后改脸和状态变量,停时间
@@ -543,9 +549,7 @@ def save_evf_file(self):
543549

544550
self.label.ms_board.is_fair = self.is_fair()
545551
self.label.ms_board.is_offical = self.is_official()
546-
# if self.label.ms_board.is_fair and self.label.ms_board.is_offical:
547-
# self.label.ms_board.checksum = metaminesweeper_checksum.get_checksum()
548-
# self.label.ms_board.mode = self.gameMode
552+
549553
self.label.ms_board.software = "元3.1.8".encode( "UTF-8" )
550554
self.label.ms_board.player_designator = self.player_designator.encode( "UTF-8" )
551555
self.label.ms_board.race_designator = self.race_designator.encode( "UTF-8" )
@@ -1076,6 +1080,8 @@ def action_OpenFile(self, openfile_name = None):
10761080
if isinstance(video, ms.EvfVideo):
10771081
self.score_board_manager.with_namespace({
10781082
"checksum_ok": self.checksum_guard.valid_checksum(video.raw_data[:-33], video.checksum),
1083+
"is_official": video.is_offical, # 此处拼写错误,将修改
1084+
"is_fair": video.is_fair
10791085
})
10801086
video.analyse_for_features(["high_risk_guess", "jump_judge", "needless_guess",
10811087
"mouse_trace", "vision_transfer", "survive_poss"])

src/superGUI.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ def __init__(self, MainWindow, args):
8181
self.score_board_manager.with_namespace({
8282
"race_designator": self.race_designator,
8383
"mode": mm.trans_game_mode(self.gameMode),
84-
"checksum_ok": "--"
84+
"checksum_ok": "--",
85+
"is_official": "--",
86+
"is_fair": "--"
8587
})
8688

8789
self.importLEDPic(self.pixSize) # 导入图片

0 commit comments

Comments
 (0)