made is_capturing a kwarg
This commit is contained in:
parent
eae87f353b
commit
baa09135ee
@ -12,7 +12,7 @@ class Move:
|
|||||||
|
|
||||||
|
|
||||||
class PieceMove(Move):
|
class PieceMove(Move):
|
||||||
def __init__(self, piece: Piece, pos: Position, is_capturing: bool) -> None:
|
def __init__(self, piece: Piece, pos: Position,/, is_capturing: bool = False) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.piece = piece
|
self.piece = piece
|
||||||
self.pos = pos
|
self.pos = pos
|
||||||
|
Loading…
x
Reference in New Issue
Block a user