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
a54097a5
Commit
a54097a5
authored
Apr 07, 2020
by
Haj Rezvan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add sleep method and check end of game in other class.
parent
c64ab9ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
GamePlay.java
GamePlay.java
+5
-1
No files found.
GamePlay.java
View file @
a54097a5
...
...
@@ -19,10 +19,14 @@ public class GamePlay {
Player
player2
=
new
Player
(
0
);
Board
.
refresh
();
Thread
.
sleep
(
1000
);
//check end of the game
do
{
System
.
out
.
println
(
"Welcome players!!"
);
Thread
.
sleep
(
1000
);
System
.
out
.
println
(
"Player"
);
}
while
(
Board
.
checkEndOfGame
());
}
while
(
GameController
.
checkEndOfGame
());
}
}
\ No newline at end of file
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