Browse Source

Created the game engine

An endless loop where a scanner scans the next line after one action and print it.
remotes/origin/locations
David Hermann 2 years ago
parent
commit
7b7f81ec65
  1. 19
      src/main/java/org/bitbiome/InteractionLoop.java

19
src/main/java/org/bitbiome/InteractionLoop.java

@ -0,0 +1,19 @@
package org.bitbiome;
import java.util.Scanner;
public class InteractionLoop {
Scanner input = new Scanner(System.in);
public void run() {
boolean isRunning = true;
while (isRunning) {
String line = input.nextLine().toLowerCase();
System.out.println(line);
}
}
}
Loading…
Cancel
Save