My implementation of programs in the A.K. Dewdney book "The Magic Machine."