hash-map commited on
Commit
72f6183
·
verified ·
1 Parent(s): 4d66e9d

Update engine.py

Browse files
Files changed (1) hide show
  1. engine.py +2 -2
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