Skip to content
Snippets Groups Projects
Commit b08f9b99 authored by Annie Mao's avatar Annie Mao
Browse files

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
in 39 seconds
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);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment