Skip to content

GuannanDunkLi/COMP90015-ScrableGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COMP90015-ScableGame COMP90015-Assignment2-ScrableGame


This distributed game used multithread and socket programming, and it achieved good performance in concurrency and robustness

to run this project

two commond lines:

  1. java -jar GameServer.jar 1234 (1234 is the port number)
  2. java -jar Client.jar localhost 1234 (localhost could be specified to any IP address, and 1234 is the port number)

hint: you should run server first, and you can run several clients to play this game

sequence diagram

img

functions

1. Login

2. Invitation Hall

3. Scrabble Game Process

4. Exception Handling


Login

img

img

after you logs in, the server will record the logging information:

img

InvitationHall

img

img

img

let's have three players, and two of them play this game:

img

ScrabbleGameProcess

the correctness of word is determined by all players:

img

img

img

if we choose agree:

img

then another player want to watch this game:

img

the watcher cannot play this game:

img

after one player logs out, the game is over, and will declare the winner:

img

all game information is stored in server's log system:

img

ExceptionHandling

img

img

img

img

img

About

COMP90015-Assignment2-ScrableGame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages