Commit d86ed05b authored by Haj Rezvan's avatar Haj Rezvan

The program updated to version 0.1.

The "setMapByPosition" and "setVisualMapByPosition" methods commented and "setVisualMap" and "setMap" methods added.
parent 3422efaf
...@@ -3,7 +3,7 @@ import java.io.IOException; ...@@ -3,7 +3,7 @@ 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
* @version 0.0 * @version 0.1
*/ */
public class Board implements IBoard { public class Board implements IBoard {
...@@ -141,7 +141,9 @@ public class Board implements IBoard { ...@@ -141,7 +141,9 @@ public class Board implements IBoard {
} }
} }
public void setMapByPosition(int position, char nut){ //Access in version 0.0
/* public void setMapByPosition(int position, char nut){
map[position] = nut; map[position] = nut;
} }
...@@ -150,6 +152,7 @@ public class Board implements IBoard { ...@@ -150,6 +152,7 @@ public class Board implements IBoard {
yPosition = 4 * (yPosition - 1) + 2; yPosition = 4 * (yPosition - 1) + 2;
this.visualMap[yPosition][xPosition] = nut; this.visualMap[yPosition][xPosition] = nut;
} }
*/
public int searchPosition(char c){ public int searchPosition(char c){
switch (c){ switch (c){
...@@ -187,4 +190,11 @@ public class Board implements IBoard { ...@@ -187,4 +190,11 @@ public class Board implements IBoard {
printMap(); printMap();
} }
public void setVisualMap(char[][] visualMap) {
this.visualMap = visualMap;
}
public void setMap(char[] map) {
this.map = map;
}
} }
\ 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