Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p3
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
cse332-20sp
p3
Commits
b08f9b99
Commit
b08f9b99
authored
4 years ago
by
Annie Mao
Browse files
Options
Downloads
Patches
Plain Diff
Add CloudClient just in case
parent
70b95f31
No related branches found
No related tags found
No related merge requests found
Pipeline
#340836
failed with stage
Stage: test
in 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/chess/play/CloudClient.java
+22
-0
22 additions, 0 deletions
src/chess/play/CloudClient.java
with
22 additions
and
0 deletions
src/chess/play/CloudClient.java
0 → 100644
+
22
−
0
View file @
b08f9b99
package
chess.play
;
import
cse332.chess.server.Hub
;
/**
* You can use this client to have your bot automatically
* start a match when run. This will be particularly useful
* when you want to have your bot play on a cloud instance. To
* see how the game is going, you should observe the game using
* the normal EasyChess interface.
*/
public
class
CloudClient
{
public
static
void
main
(
String
[]
args
)
{
String
username
=
"YOUR_TEAMNAME_HERE"
;
String
password
=
"YOUR_TEAM_PASSWORD_HERE"
;
String
botToPlay
=
"THE_BOT_YOU_WANT_TO_FACE"
;
System
.
out
.
println
(
"Starting a match against "
+
botToPlay
);
Hub
hub
=
new
Hub
(
null
,
botToPlay
);
hub
.
login
(
username
,
password
);
}
}
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