Commit c64ab9ff authored by Haj Rezvan's avatar Haj Rezvan

Remove additional import from program.

parent 117fc127
import java.io.IOException;
/** /**
* This class represents status of board and update its. * This class represents status of board and update its.
* @author Rezvanian 9831029 * @author Rezvanian 9831029
...@@ -150,10 +148,8 @@ public class Board implements IBoard { ...@@ -150,10 +148,8 @@ public class Board implements IBoard {
/** /**
* this method clear the screen and print the map. * this method clear the screen and print the map.
* */ * */
static public void printMap() throws IOException, InterruptedException{ static public void printMap() {
//clear terminal for refresh.
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
System.out.println(); System.out.println();
System.out.println(); System.out.println();
System.out.println(); System.out.println();
...@@ -218,17 +214,10 @@ public class Board implements IBoard { ...@@ -218,17 +214,10 @@ public class Board implements IBoard {
/** /**
* this method refresh of map * this method refresh of map
* */ * */
public static void refresh() throws IOException, InterruptedException { public static void refresh(){
printMap(); printMap();
} }
/**
* this method check end of the game.
* */
public static boolean checkEndOfGame(){
boolean validate = true;
return validate;
}
/** /**
* this method set value of "visualMap". * this method set value of "visualMap".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment