mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-22 21:27:43 +08:00
fix: 扫雷布局
This commit is contained in:
parent
205a28eb56
commit
6a49a70481
@ -145,14 +145,15 @@ class Minesweeper:
|
|||||||
Returns:
|
Returns:
|
||||||
"""
|
"""
|
||||||
dis = " "
|
dis = " "
|
||||||
text = self.NUMS[0] + dis*2
|
start = "> " if self.col >= 10 else ""
|
||||||
|
text = start + self.NUMS[0] + dis*2
|
||||||
# 横向两个雷之间的间隔字符
|
# 横向两个雷之间的间隔字符
|
||||||
# 生成横向索引
|
# 生成横向索引
|
||||||
for i in range(self.cols):
|
for i in range(self.cols):
|
||||||
text += f"{self.NUMS[i]}" + dis
|
text += f"{self.NUMS[i]}" + dis
|
||||||
text += "\n\n"
|
text += "\n\n"
|
||||||
for i, row in enumerate(self.board):
|
for i, row in enumerate(self.board):
|
||||||
text += f"{self.NUMS[i]}" + dis*2
|
text += start + f"{self.NUMS[i]}" + dis*2
|
||||||
print([d.value for d in row])
|
print([d.value for d in row])
|
||||||
for dot in row:
|
for dot in row:
|
||||||
if dot.mask and not dot.flagged:
|
if dot.mask and not dot.flagged:
|
||||||
|
Loading…
Reference in New Issue
Block a user