Whitespaces in Main und scanner width und height entfernen
This commit is contained in:
@@ -1,20 +1,14 @@
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.Scanner;
|
|
||||||
|
|
||||||
public class CatchTheMouse {
|
public class CatchTheMouse {
|
||||||
public static void main(String[] args) throws IOException {
|
public static void main(String[] args) throws IOException {
|
||||||
|
|
||||||
Scanner scanner = new Scanner(System.in);
|
|
||||||
int width;
|
|
||||||
int height;
|
|
||||||
int round = 0;
|
int round = 0;
|
||||||
|
|
||||||
System.out.println("Welcome to Catch the Mouse");
|
System.out.println("Welcome to Catch the Mouse");
|
||||||
Game game = Game.getInstance(10, 10);
|
Game game = Game.getInstance(10, 10);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
while(!game.gameOver())
|
while (!game.gameOver()) {
|
||||||
{
|
|
||||||
game.writer.write("Round " + round);
|
game.writer.write("Round " + round);
|
||||||
game.writer.newLine();
|
game.writer.newLine();
|
||||||
game.printField();
|
game.printField();
|
||||||
|
|||||||
Reference in New Issue
Block a user