2 ms·
I propose an instruction set which consists of a single instruction. I'll give it the mnemonic CHS, and when executed, it causes the CPU to play a game of chess
by mikeash 12y ago
I propose an instruction set which consists of a single instruction. I'll give it the mnemonic CHS, and when executed, it causes the CPU to play a game of chess with the user.
(That's a long way to say that the question is somewhat under-constrained.)
- jdmichal 12y agoI propose yet another instruction set in which the CPU, unless interrupted, plays a game of chess with the user. 0-byte program achieved.
- joshu 12y agoThat's wordplay masquerading as understanding. Instead consider a CPU architecture and accompanying notation designed especially for playing chess. The other idea is not very interesting. Assuming some arbitrary architecture plus the necessary code to emulate it on a normal architecture (including your stupid CHS example) would normalize the "size" of the program, anyway -- unless there are hardware structures that are especially good for chess. Which was the essence of the question.