diff --git a/pigeon_magnet_solver/board.py b/pigeon_magnet_solver/board.py index 649c58a..b195f41 100644 --- a/pigeon_magnet_solver/board.py +++ b/pigeon_magnet_solver/board.py @@ -46,12 +46,10 @@ class Board: ), "Invalid buttons!" def __str__(self) -> str: - result = "\n".join(self.rows) - result = result\ - .replace("0", "⚪️")\ - .replace("1", "🟢️")\ + return "\n".join(self.rows) \ + .replace("0", "⚪️") \ + .replace("1", "🟢️") \ .replace("x", "⚫️") - return result @property def columns(self) -> tuple[str, ...]: