Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assignment1.0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
qingyuw2
assignment1.0
Commits
b0659988
Commit
b0659988
authored
4 years ago
by
qingyuw2
Browse files
Options
Downloads
Patches
Plain Diff
README finished
parent
ae4d61bb
Branches
assignment1.2
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
manual_test/0.png
+0
-0
0 additions, 0 deletions
manual_test/0.png
manual_test/README.MD
+21
-0
21 additions, 0 deletions
manual_test/README.MD
src/startGame.java
+12
-11
12 additions, 11 deletions
src/startGame.java
with
33 additions
and
11 deletions
manual_test/0.png
0 → 100644
+
0
−
0
View file @
b0659988
44.1 KiB
This diff is collapsed.
Click to expand it.
manual_test/README.MD
+
21
−
0
View file @
b0659988
# Manual Test Plan
compile and run code through terminal
```
javac startGame.java
java startGame
```
## Start Scene of the Game
Shown in 0.png. To run on your computer, please comment out all the lines except line 7.
## During the Game
Shown in 1.png, 2.png, and 3.png. To run on your computer, please comment out all the lines except line 8-line15
## Select Color After Wild Card
Shown in 4.png. To run on your computer, please comment out all the lines except line8 and line 16.
## Discard Reshuffled into Deck
Shown in 5.png. To run on your computer, please comment out all the lines except line 8 and line 17.
## End Scene of the Game
Shown in 6.png. To run on your computer, please comment out all the lines except line 8 and line 18.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/startGame.java
+
12
−
11
View file @
b0659988
...
...
@@ -4,16 +4,17 @@ import java.util.concurrent.TimeUnit;
public
class
startGame
{
public
static
void
main
(
String
[]
args
)
throws
InterruptedException
{
Game
game
=
new
Game
(
3
);
game
.
printCurrentGameState
();
TimeUnit
.
SECONDS
.
sleep
(
5
);
game
.
setTurn
(
1
);
game
.
printCurrentGameState
();
TimeUnit
.
SECONDS
.
sleep
(
5
);
game
.
setTurn
(
2
);
game
.
printCurrentGameState
();
game
.
printWildSelection
();
game
.
printReshuffle
();
game
.
printGameEnd
();
System
.
out
.
println
(
"Welcome to UNO! How many player will play?"
);
// Game game = new Game(3);
// game.printCurrentGameState();
// TimeUnit.SECONDS.sleep(5);
// game.setTurn(1);
// game.printCurrentGameState();
// TimeUnit.SECONDS.sleep(5);
// game.setTurn(2);
// game.printCurrentGameState();
// game.printWildSelection();
// game.printReshuffle();
// game.printGameEnd();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment