fix: 扫雷布局错误

This commit is contained in:
Snowykami 2024-03-29 07:07:11 +08:00 committed by GitHub
parent 6a49a70481
commit 9cf05fd8fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -145,7 +145,7 @@ class Minesweeper:
Returns:
"""
dis = " "
start = "> " if self.col >= 10 else ""
start = "> " if self.cols >= 10 else ""
text = start + self.NUMS[0] + dis*2
# 横向两个雷之间的间隔字符
# 生成横向索引