From 8753b6b68d01be7a328aba5e34a248d4c31f62e3 Mon Sep 17 00:00:00 2001 From: Timo Schneider Date: Thu, 21 Mar 2024 16:15:13 +0100 Subject: [PATCH] fixed README --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index d8b9d71..43461ba 100644 --- a/README.md +++ b/README.md @@ -4,28 +4,28 @@ https://en.wikipedia.org/wiki/Turing_machine ## How to use -(1) Create a new touring mashine +### (1) Create a new touring mashine ```rust let turing_machine: TuringMachine = TuringMachine::new(); ``` -(2) Configure the belt +### (2) Configure the belt ```rust turing_machine.set_belt(index: usize, value: Value); ``` -(3) Configure the state machine - (3.1) Set the transitions +### (3) Configure the state machine +####  (3.1) Set the transitions ```rust turing_machine.set_transition(state: u64, trigger: Value, next_state: u64); ``` - (3.1) Set the actions +####  (3.1) Set the actions ```rust turing_machine.set_action(state: u64, trigger: Value, action: Action); ``` -(4) Run the machine +### (4) Run the machine ```rust turing_machine.start(); ```