Commit e014cbf1 authored by Haj Rezvan's avatar Haj Rezvan

The program updated to version 0.2

Change Board's fields and method, to static fields and methods.
parent 297a75c7
...@@ -2,8 +2,8 @@ import java.io.IOException; ...@@ -2,8 +2,8 @@ import java.io.IOException;
public class GamePlay { public class GamePlay {
public static void main(String[] args) throws IOException, InterruptedException { public static void main(String[] args) throws IOException, InterruptedException {
Board mapGame = new Board();
mapGame.printMap(); Board.initialisingBoard();
Nuts nuts1B = new Nuts('b',4,'D'); Nuts nuts1B = new Nuts('b',4,'D');
Nuts nuts2B = new Nuts('b',5,'E'); Nuts nuts2B = new Nuts('b',5,'E');
...@@ -11,6 +11,6 @@ public class GamePlay { ...@@ -11,6 +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(); Board.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