Skip to content

Commit

Permalink
fix long code
Browse files Browse the repository at this point in the history
  • Loading branch information
BDadmehr0 committed Nov 24, 2024
1 parent 04556a2 commit 86e8bbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ def draw(self):
elif i in boxes:
indexed_line += f"{FGColors.YELLOW}{BOX_CH}{FGColors.RESET}"
elif i == self.columns - 1:
indexed_line += f"{BGColors.MAGENTA}{FGColors.WHITE}>{FGColors.RESET}{BGColors.RESET}"
prefix = f"{BGColors.MAGENTA}{FGColors.WHITE}>{FGColors.RESET}{BGColors.RESET}"
indexed_line += prefix
else:
# Here we specify that the character "↟" should be green.
if self.generated_map[i] == "↟":
Expand Down

0 comments on commit 86e8bbb

Please sign in to comment.