From 7de598563190d3ae9eb7fc47f21516ea5c96aef5 Mon Sep 17 00:00:00 2001 From: Serhii Fedorov Date: Tue, 7 Nov 2023 15:47:14 +0200 Subject: [PATCH] Fixing init view --- app/main.py | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/main.py b/app/main.py index 7a72de4..3b0c985 100644 --- a/app/main.py +++ b/app/main.py @@ -1,20 +1,22 @@ class Deck: - def __init__(self, - row: int, - column: int, - is_alive: bool = True - ) -> None: + def __init__( + self, + row: int, + column: int, + is_alive: bool = True + ) -> None: self.row = row self.column = column self.is_alive = is_alive class Ship: - def __init__(self, - start: tuple, - end: tuple, - is_drowned: bool = False - ) -> None: + def __init__( + self, + start: tuple[int], + end: tuple[int], + is_drowned: bool = False + ) -> None: self.decks = [ Deck(row, col) for col in range(start[1], end[1] + 1)