marcusbuffett / command-line-chess

A python program to play chess against an AI in the terminal.
MIT License
501 stars 165 forks source link

En passant and stalemate #28

Closed johndoknjas closed 2 years ago

johndoknjas commented 2 years ago

This PR allows the engine to detect when there's no mating material (K vs K, K+B vs K, K+N vs K), and also fixes a bug preventing en passant detection.

marcusbuffett commented 2 years ago

LGTM, thank you!