From 08db5c134275f68cb99a924cba59571c98405adf Mon Sep 17 00:00:00 2001 From: leobr Date: Sun, 8 May 2022 22:22:50 +0200 Subject: [PATCH] Anzeige von aktuellem Zustand --- src/TM.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/TM.java b/src/TM.java index d28afaf..b326364 100644 --- a/src/TM.java +++ b/src/TM.java @@ -32,7 +32,9 @@ public class TM { try { calcOneStep(); appendToBand(); + System.out.println("Step: "+numberOfSteps); + System.out.println("Aktueller zustand: Q" + aktuellerZustand); System.out.println(this); } catch (TmException e) { e.printStackTrace(); @@ -40,6 +42,7 @@ public class TM { } } System.out.println("Finished:"); + System.out.println("Zustand: Q" + aktuellerZustand); System.out.println("Step: "+numberOfSteps); System.out.println(this); }