Ok, heres a challenge for all of you coders. Make a Turing machine in any language you want. Heres a video that explains a turing machine pretty well: https://www.youtube.com/watch?v=dNRDvLACg5Q. Watch this video carefully. This machine will work like Brainf**k. Each state will have an ASCII value. When you call the print function, the program will print the value on that square. This video will explain brainf**k in depth: https://www.youtube.com/watch?v=L36NbQQi-hk.  Best of luck!

NOTE here are all of the syntax types you will need:

Increase state: >

Decrease state: <

Increase value: +

Decrease value: –

Loops: []

Print: .

Heres a sample input:

-[——->+<]>-.-[->+++++<]>++.+++++++..+++.[—>+<]>—–.–[->++++<]>-.——–.+++.——.——–.-[—>+<]>.

Heres some sample output:

Hello world!

If this worked, then you have completed this code golf!

Advertisements