from PIL import Image, ImageDraw
# Load the original image
image_path = "/mnt/data/file-NxKR9yjBCYGqWRsRoU84ob"
original_image = Image.open(image_path)
# Create a copy to draw on
solved_image = original_image.copy()
draw = ImageDraw.Draw(solved_image)
# Coordinates to mark the moves
# 1. Rook f4 to f1 (Black)
# 2. Rook c4 to c1 (Black) for checkmate after White moves
# Draw arrows to indicate the moves (approximate positions)
draw.line([(220, 510), (220, 150)], fill="red", width=5) # Rf4 to f1
draw.line([(125, 510), (125, 150)], fill="blue", width=5) # Rc4 to c1 (next move)
# Show the result
solved_image.show()