LLM’s are terrible at following the rules of Chess when playing a game. Determinism isn’t helpful because valid moves are so dependent upon the total state of the board.
Programming state gets way more complicated, but code is generally written to help people understand it greatly simplifying the process. Feed in “cursed” code leveraging obscure language features in creative ways and LLM’s and most people fail.