https://baseballrulesacademy.com/yes-a-pitcher-can-win-lose-the-same-game/

It would be an absolute nightmare to code.