Spaces:
Sleeping
Sleeping
Update engine.py
Browse files
engine.py
CHANGED
|
@@ -733,9 +733,9 @@ class Move():
|
|
| 733 |
#pawn move
|
| 734 |
if self.peice_moved[1] == 'p':
|
| 735 |
if self.is_capture:
|
| 736 |
-
return self.cols_to_files[self.start_col] + 'x'+ end_square
|
| 737 |
else:
|
| 738 |
-
return end_square
|
| 739 |
# pawn promotion
|
| 740 |
#Nbd2 both knights can move to d2
|
| 741 |
|
|
|
|
| 733 |
#pawn move
|
| 734 |
if self.peice_moved[1] == 'p':
|
| 735 |
if self.is_capture:
|
| 736 |
+
return self.cols_to_files[self.start_col] + 'x'+ end_square + f""" {self.peice_moved} from {self.get_rank_file(self.start_row, self.start_col)} to {self.get_rank_file(self.end_row, self.end_col)}"""
|
| 737 |
else:
|
| 738 |
+
return end_square+ f""" {self.peice_moved} from {self.get_rank_file(self.start_row, self.start_col)} to {self.get_rank_file(self.end_row, self.end_col)}"""
|
| 739 |
# pawn promotion
|
| 740 |
#Nbd2 both knights can move to d2
|
| 741 |
|