Scrabble lite is a lite version of a scrabble game playable over the network with a unique server capable of hosting multiple rooms. Each rooms are able to host between 2 and 4 players.
Make sure your imports contains "Protocol.jar" present in the project ressources and if you want to use the GUI please make sure the project is rinning on java 8 since this uses the implmented version of javaFX that have been removed in the later versions of java.
To play run the server instance (ServerGame) and choose between the client method you wan to use (either ClientGame for console play or ScrabbleGUI for the gui). In both, it uses command input.
command: cr
argument:
- max amount of player (can be between 2 and 4)
example:
cr;2
# send an initialisation of the room and start if full
command: jr
argument:
- room id
example:
jr;1
# send an initialisation of the room and start if full
command: m
arguments:
- alignment (either horizontal or vertical)
- coordinate (given by a letter and then a number)
- the word to be played (for empty tiles specify $ folloowed by the letter it represent)
example: (if you have the tiles na$orrd)
> Please make a move (m;<align>;<coord>;<word>) for move (s) for skip (r;<letters>) to replace letters
m;vertical;H8;narro$w
> [INFO] Current scores are: YOU:10, other_player:0
# board update
> [INFO] it is other_player's turn.
> [INFO] Your tiles are:rdogeez
command: s
arguments: none
example:
> Please make a move (m;<align>;<coord>;<word>) for move (s) for skip (r;<letters>) to replace letters
s
> [INFO] Current scores are: YOU:10, other_player:0
# board update
> [INFO] it is other_player's turn.
> [INFO] Your tiles are:rdogeez
command: t
argument:
- tiles to be exchnaged (presented like if it was a word)
example: (if you have the tiles rdogeez)
> Please make a move (m;<align>;<coord>;<word>) for move (s) for skip (r;<letters>) to replace letters
r;der
> [INFO] Current scores are: YOU:10, other_player:0
# board update
> [INFO] it is other_player's turn.
> [INFO] Your tiles are:geeziso
command: rr
argument: none
example:
rr
> [INFO] room(s): 1,2
command: /fs
argument: none
example:
/fs
# starts a game
command: /fx
argument: none
example:
/fx
# calculates the score and prints the result