Skip to content

tiagorspires/CPD-GameServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

CPD Assignment 2

Matchmaking Server

Compilation

Starting from the project root folder.

$ cd src
$ javac *.java

Running the server

Starting from the src folder.

$ java GameServer <port> <credentials_file>

There is already a credentials file included in the project. You can run the following command:

$ java GameServer 8000 credentials.txt

Running the client

Starting from the src folder.

$ java GameClient <server_ip> <port>

For example, you can run:

$ java GameClient 127.0.0.1 8000

You will then be prompted to authenticate. If you used the credentials.txt file already included, you can find the authentication credentials in the section bellow.

After authentication, you will be asked to choose between simple or ranked mode, and put in the respective queue.

Once matched, you can play Tic-Tac-Toe by inserting the row and column you want to play on (these are 0 indexed). Before inputting the play, the player must press enter.

Finally, you can quit anytime by typing quit.

Credentials

These are the credentials already included, that can be used for authentication.

Username Password
alice alicepassword
bob bobpassword
tiago tyga
ruben ruben12345

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages