Re: Still got one in the loft
Chess in 1K - The computer did play against you.
So you had the graphical display, the rules of what moves are valid, and the decision making algorithm all wrapped up in 1K.
IIRC, the book "Mastering Machine Code on Your ZX81", took you through every step of the code in one of the later chapters.
Caveat - It wasn't pretty, it couldn't handle castling, and it wasn't even all that good at winning, so if anyone's up for a real coding challenge...?