14

 avatar
unknown
plain_text
2 years ago
451 B
5
Indexable
# chess = '1. d2 e6 2. e4 d5 3. Кc3 h6 4. Кf3 c5  5. e:d5 e:d5 6. O-O O-O 7. Сe2 Сe7  8. Сg5 Кc6 9. d:c5 Сe6 10. Кd4 С:c5 11. Кb3 Сe7 12. Сf3 Кe5 13. c4 Лe1  14. Ф:f3 Лc8 15. h3 К:f3+'
white = chess.split('. O-O')[0].split()[-1]
black = chess.replace('. O-O', ' c').split('O-O')[0].split()[-2].rstrip('.')
print(f'Белая рокировка на {white} ходу')
print(f'Черная рокировка на {black} ходу')


Editor is loading...