Skip to content

Commit

Permalink
Fixing init view
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov-s-od committed Nov 7, 2023
1 parent b4afa61 commit 7de5985
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7de5985

Please sign in to comment.