12 lines
434 B
Python
12 lines
434 B
Python
from chess_piece import ChessPiece
|
|
from move import Move
|
|
from player import Player
|
|
from move_sets import pawn_valid_move_sets
|
|
|
|
class Pawn(ChessPiece):
|
|
def __init__(self, piece_color: Player):
|
|
super().__init__(piece_color)
|
|
|
|
def is_valid_move(self, move: Move, board: list[list[ChessPiece]]) -> bool:
|
|
# run original check and other piece specific checks
|
|
orig_is_valid = super().is_valid_move(move, board) |