mirror of
https://github.com/blackboxprogramming/universal-computer.git
synced 2026-03-17 05:57:19 -05:00
Add even_odd.json
This commit is contained in:
15
machines/even_odd.json
Normal file
15
machines/even_odd.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"states": ["q0", "q1", "q_even", "q_odd", "q_h"],
|
||||
"alphabet": ["1", "E", "O", "_"],
|
||||
"blank": "_",
|
||||
"transitions": {
|
||||
"q0:1": ["q1", "1", "R"],
|
||||
"q0:_": ["q_even", "_", "S"],
|
||||
"q1:1": ["q0", "1", "R"],
|
||||
"q1:_": ["q_odd", "_", "S"],
|
||||
"q_even:_": ["q_h", "E", "S"],
|
||||
"q_odd:_": ["q_h", "O", "S"]
|
||||
},
|
||||
"start": "q0",
|
||||
"halt": "q_h"
|
||||
}
|
||||
Reference in New Issue
Block a user