Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Project_part1_Rezvanian_9831029
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
9831029
Project_part1_Rezvanian_9831029
Commits
8a8c87c9
Commit
8a8c87c9
authored
Apr 05, 2020
by
Haj Rezvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add javadoc to my project and clear the empty space.
parent
00669426
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
Board.java
Board.java
+2
-7
GamePlay.java
GamePlay.java
+6
-1
IBoard.java
IBoard.java
+5
-4
No files found.
Board.java
View file @
8a8c87c9
...
@@ -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
(){
...
...
GamePlay.java
View file @
8a8c87c9
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
{
...
...
IBoard.java
View file @
8a8c87c9
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
{
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment