mirror of
https://github.com/blackboxprogramming/universal-computer.git
synced 2026-03-17 07:57:27 -05:00
Add binary-counter Turing machine definition
This commit is contained in:
18
machines/binary-counter.json
Normal file
18
machines/binary-counter.json
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"states": ["right", "carry", "done", "halt"],
|
||||||
|
"alphabet": ["0", "1", "_"],
|
||||||
|
"blank": "_",
|
||||||
|
"start": "right",
|
||||||
|
"halt": "halt",
|
||||||
|
"transitions": {
|
||||||
|
"right:0": ["right", "0", "R"],
|
||||||
|
"right:1": ["right", "1", "R"],
|
||||||
|
"right:_": ["carry", "_", "L"],
|
||||||
|
"carry:0": ["done", "1", "L"],
|
||||||
|
"carry:1": ["carry", "0", "L"],
|
||||||
|
"carry:_": ["done", "1", "S"],
|
||||||
|
"done:0": ["done", "0", "L"],
|
||||||
|
"done:1": ["done", "1", "L"],
|
||||||
|
"done:_": ["halt", "_", "R"]
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user