So I was watching the anime series Ghost in the Shell and I don’t feel productive when I’m just watching anime, and I can’t write words when watching videos, so I decided to do some programming purely for fun.
What I did was write a little demonstration of a Turing Machine. Before there were computers, Alan Turing proved on paper that a machine could perform complex tasks. With a strip of paper divided up into places, the machine may read or write a symbol to its current place, move to another place, or change its state. This way it moves up and down the tape, reading and writing symbols, and, depending on its algorithm (instructions), performs calculations.
A Turing Machine
The HTML page is located here. If you’d like to download the code, right click on the link, and select “Save link as…” and then edit the code in notepad to play with it. This code could certainly be written more elegantly, but Ghost in the Shell was pretty engaging, and the more basic code more appropriately speaks to the basic mechanics of what this demonstration is supposed to demonstrate.