diff --git a/__pycache__/bishop.cpython-310.pyc b/__pycache__/bishop.cpython-310.pyc index ac0d32b..c75dc8a 100644 Binary files a/__pycache__/bishop.cpython-310.pyc and b/__pycache__/bishop.cpython-310.pyc differ diff --git a/__pycache__/move.cpython-310.pyc b/__pycache__/move.cpython-310.pyc index fce85f0..1828731 100644 Binary files a/__pycache__/move.cpython-310.pyc and b/__pycache__/move.cpython-310.pyc differ diff --git a/__pycache__/queen.cpython-310.pyc b/__pycache__/queen.cpython-310.pyc index f335403..5ffa110 100644 Binary files a/__pycache__/queen.cpython-310.pyc and b/__pycache__/queen.cpython-310.pyc differ diff --git a/__pycache__/rook.cpython-310.pyc b/__pycache__/rook.cpython-310.pyc index 95557a6..22e499a 100644 Binary files a/__pycache__/rook.cpython-310.pyc and b/__pycache__/rook.cpython-310.pyc differ diff --git a/bishop.py b/bishop.py index dbf933e..4a61cac 100644 --- a/bishop.py +++ b/bishop.py @@ -2,7 +2,7 @@ from piece import Piece from board import Board from square import Square class Bishop(Piece): - def straightline_moves(self, piece, row, column): + def bishop_moves(self, piece, row, column): self.direction = [ (1, 1), (-1, -1), diff --git a/move.py b/move.py index 0b26673..8edc2a1 100644 --- a/move.py +++ b/move.py @@ -73,7 +73,7 @@ class Move: #piece.delete_moves() piece.valid_moves=[] if piece.name == 'rook': - Rook.straightline_moves(self, piece, row, column) + Rook.rook_moves(self, piece, row, column) pass elif piece.name == 'pawn': Pawn.pawn_moves(self, piece, row, column) @@ -82,11 +82,11 @@ class Move: Knight.knight_moves(self, piece, row, column) elif piece.name == 'bishop': pass - Bishop.straightline_moves(self, piece, row, column) + Bishop.bishop_moves(self, piece, row, column) elif piece.name == 'queen': pass - Queen.straightline_moves(self, piece, row, column,True) - Queen.straightline_moves(self, piece, row, column,False) + Queen.queen_moves(self, piece, row, column,True) + Queen.queen_moves(self, piece, row, column,False) elif piece.name == 'king': King.king_moves(self, piece, row, column) pass diff --git a/queen.py b/queen.py index fc60086..4780523 100644 --- a/queen.py +++ b/queen.py @@ -2,7 +2,7 @@ from piece import Piece from board import Board from square import Square class Queen(Piece): - def straightline_moves(self, piece, row, column, isvertical): + def queen_moves(self, piece, row, column, isvertical): if isvertical is True: self.direction = [ (0, 1), diff --git a/rook.py b/rook.py index 917a14c..940654e 100644 --- a/rook.py +++ b/rook.py @@ -2,7 +2,7 @@ from piece import Piece from board import Board from square import Square class Rook(Piece): - def straightline_moves(self, piece, row, column): + def rook_moves(self, piece, row, column): self.direction = [ (0, 1),