gooo
This commit is contained in:
@@ -28,8 +28,25 @@ class MoveValidity(Enum):
|
||||
|
||||
|
||||
# TODO: create UndoException
|
||||
class UndoException(Exception):
|
||||
pass
|
||||
|
||||
# create default board setup (y, x) not (x, y)
|
||||
# blank spaces are set to none, as seen in the chess_gui_small_view
|
||||
DEFAULT_BOARD = [
|
||||
[Rook(Player.BLACK), Knight(Player.BLACK), Bishop(Player.BLACK), Queen(Player.BLACK), King(Player.BLACK), Bishop(Player.BLACK), Knight(Player.BLACK), Rook(Player.BLACK)],
|
||||
[Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK), Pawn(Player.BLACK)],
|
||||
[None, None, None, None, None, None, None, None],
|
||||
[None, None, None, None, None, None, None, None],
|
||||
[None, None, None, None, None, None, None, None],
|
||||
[None, None, None, None, None, None, None, None],
|
||||
[Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE), Pawn(Player.WHITE)],
|
||||
[Rook(Player.WHITE), Knight(Player.WHITE), Bishop(Player.WHITE), Queen(Player.WHITE), King(Player.WHITE), Bishop(Player.WHITE), Knight(Player.WHITE), Rook(Player.WHITE)]
|
||||
]
|
||||
|
||||
|
||||
class ChessModel:
|
||||
# TODO: fill in this class
|
||||
pass
|
||||
def __init__(self):
|
||||
self.__board = DEFAULT_BOARD
|
||||
|
||||
# i wanna do easy checking for whether a piece can skip over another piece
|
||||
Reference in New Issue
Block a user