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
c64ab9ff
Commit
c64ab9ff
authored
Apr 07, 2020
by
Haj Rezvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove additional import from program.
parent
117fc127
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
Board.java
Board.java
+2
-13
No files found.
Board.java
View file @
c64ab9ff
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
...
@@ -150,10 +148,8 @@ public class Board implements IBoard {
...
@@ -150,10 +148,8 @@ public class Board implements IBoard {
/**
/**
* this method clear the screen and print the map.
* this method clear the screen and print the map.
* */
* */
static
public
void
printMap
()
throws
IOException
,
InterruptedException
{
static
public
void
printMap
()
{
//clear terminal for refresh.
new
ProcessBuilder
(
"cmd"
,
"/c"
,
"cls"
).
inheritIO
().
start
().
waitFor
();
System
.
out
.
println
();
System
.
out
.
println
();
System
.
out
.
println
();
System
.
out
.
println
();
System
.
out
.
println
();
System
.
out
.
println
();
...
@@ -218,17 +214,10 @@ public class Board implements IBoard {
...
@@ -218,17 +214,10 @@ public class Board implements IBoard {
/**
/**
* this method refresh of map
* this method refresh of map
* */
* */
public
static
void
refresh
()
throws
IOException
,
InterruptedException
{
public
static
void
refresh
(){
printMap
();
printMap
();
}
}
/**
* this method check end of the game.
* */
public
static
boolean
checkEndOfGame
(){
boolean
validate
=
true
;
return
validate
;
}
/**
/**
* this method set value of "visualMap".
* this method set value of "visualMap".
...
...
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