From 6a49a70481d53aac37a806892bb4503c7ae959c7 Mon Sep 17 00:00:00 2001 From: Snowykami <79104275+snowykami@users.noreply.github.com> Date: Fri, 29 Mar 2024 07:05:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=89=AB=E9=9B=B7=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteyuki/plugins/liteyuki_minigame/game.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/liteyuki/plugins/liteyuki_minigame/game.py b/liteyuki/plugins/liteyuki_minigame/game.py index 01ded29f..92569877 100644 --- a/liteyuki/plugins/liteyuki_minigame/game.py +++ b/liteyuki/plugins/liteyuki_minigame/game.py @@ -145,14 +145,15 @@ class Minesweeper: Returns: """ 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): text += f"{self.NUMS[i]}" + dis text += "\n\n" 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]) for dot in row: if dot.mask and not dot.flagged: