Commit 8a8c87c9 authored by Haj Rezvan's avatar Haj Rezvan

Add javadoc to my project and clear the empty space.

parent 00669426
...@@ -10,24 +10,19 @@ public class Board implements IBoard { ...@@ -10,24 +10,19 @@ public class Board implements IBoard {
private static final int SIZE = 9; private static final int SIZE = 9;
//for programmer //for programmer
private static char[] map = new char[81]; private static char[] map = new char[81];
/* /*
Access in version 0.1 Access in version 0.1
private char[] map; private char[] map;
*/ */
//for user //for user
private static char[][] visualMap = new char[4 * 9 + 1][8 * 9 + 1]; private static char[][] visualMap = new char[4 * 9 + 1][8 * 9 + 1];
/* /*
Access in version 0.1 Access in version 0.1
private char[][] visualMap; private char[][] visualMap;
*/ */
/** /**
* This constructor, initialise the fields. * This method, initialise the fields.
*/ */
public static void initialisingBoard(){ public static void initialisingBoard(){
......
import java.io.IOException; import java.io.IOException;
/**
* This class, is main class in program.
* The program started from hear.
* @version 0.2
* @author Rezvanian 9831029
* */
public class GamePlay { public class GamePlay {
public static void main(String[] args) throws IOException, InterruptedException { public static void main(String[] args) throws IOException, InterruptedException {
......
import java.io.IOException; import java.io.IOException;
/**
* This interface, has declaration of method in Board class
* @version 0.2
* @author Rezvanian 9831029
* */
public interface IBoard { public interface IBoard {
char[] getMap(); char[] getMap();
char[][] getVisualMap(); char[][] getVisualMap();
static void printMap() throws IOException, InterruptedException { static void printMap() throws IOException, InterruptedException {
} }
// void setMapByPosition(int position, char nut); // void setMapByPosition(int position, char nut);
// void setVisualMapByPosition(int xPosition, int yPosition, char nut); // void setVisualMapByPosition(int xPosition, int yPosition, char nut);
int searchPosition(char c); int searchPosition(char c);
void setMap(char[] map); void setMap(char[] map);
void setVisualMap(char[][] visualMap); void setVisualMap(char[][] visualMap);
static void refresh() throws IOException, InterruptedException { static void refresh() throws IOException, InterruptedException {
} }
......
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