diff --git a/app/src/main/java/ch/nuth/zhaw/exbox/HanoiServer.java b/app/src/main/java/ch/nuth/zhaw/exbox/HanoiServer.java index 652c21d..cab3965 100644 --- a/app/src/main/java/ch/nuth/zhaw/exbox/HanoiServer.java +++ b/app/src/main/java/ch/nuth/zhaw/exbox/HanoiServer.java @@ -7,7 +7,7 @@ public class HanoiServer implements CommandExecutor { @Override public String execute(String command) throws Exception { int count = Integer.parseInt(command); - return moveDisks(count, 'A', 'B', 'C'); + return moveDisks(count, 'A', 'B', 'C') + System.lineSeparator(); } public String moveDisks(int count, char sourcePole, char restPole, char destinationPole) {