mirror of
https://gitlab.com/arnekeller/kit-programmieren-ws1920-final2.git
synced 2024-11-24 01:15:03 +00:00
Checkstyle
This commit is contained in:
parent
3ba69ce595
commit
ac50150bad
@ -22,7 +22,7 @@ public final class CommandLine {
|
|||||||
* Utility class -> private constructor.
|
* Utility class -> private constructor.
|
||||||
*/
|
*/
|
||||||
private CommandLine() {
|
private CommandLine() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -30,11 +30,11 @@ public final class CommandLine {
|
|||||||
*/
|
*/
|
||||||
public static void startInteractive() {
|
public static void startInteractive() {
|
||||||
// create a new simulation
|
// create a new simulation
|
||||||
CardGame simulation = new CardGame();
|
final CardGame simulation = new CardGame();
|
||||||
boolean lost = false;
|
boolean lost = false;
|
||||||
// accept user input indefinitely
|
// accept user input indefinitely
|
||||||
while (true) {
|
while (true) {
|
||||||
String input = Terminal.readLine();
|
final String input = Terminal.readLine();
|
||||||
|
|
||||||
// handle quit command
|
// handle quit command
|
||||||
if (input.startsWith(QUIT)) {
|
if (input.startsWith(QUIT)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user