Turing machine emulator.
Step by step displaying.
char[] initialAlphabet = {'0', '1', '*', ' '};char[] initialLine = {'*', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '*'};State Q1 = new State();
State Q2 = new State();
...Q1.subStateAdd('0', '0', 3, Q0, alphabet.alphabet);
Q1.subStateAdd('1', '1', 3, Q0, alphabet.alphabet);
...Signature: input, output, direction: (1 - right, 2 - left, 3 - stay), next state, alphabet.