Commit 6a106bd8 authored by Haj Rezvan's avatar Haj Rezvan

Add refresh method

parent 334b3718
Pipeline #3166 failed with stages
...@@ -125,6 +125,9 @@ public class Board implements IBoard { ...@@ -125,6 +125,9 @@ public class Board implements IBoard {
//clear terminal for refresh. //clear terminal for refresh.
new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor(); new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor();
System.out.println();
System.out.println();
System.out.println();
for (int i = 0; i < 4 * 9; i++){ for (int i = 0; i < 4 * 9; i++){
for (int j = 0; j < 8 * 9; j++){ for (int j = 0; j < 8 * 9; j++){
......
...@@ -11,5 +11,6 @@ public class GamePlay { ...@@ -11,5 +11,6 @@ public class GamePlay {
Nuts nuts1W = new Nuts('w',4,'E'); Nuts nuts1W = new Nuts('w',4,'E');
Nuts nuts2W = new Nuts('w',5,'D'); Nuts nuts2W = new Nuts('w',5,'D');
mapGame.refresh();
} }
} }
\ No newline at end of file
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