more cool stuff
chess, woah
This commit is contained in:
12
chess/pawn.py
Normal file
12
chess/pawn.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user