Skip to content

DriHut/BIT_scrabble

Repository files navigation

Scrabble Lite

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.

Imports

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.

How to play

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.

Commands

Create a room:

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

Join a room:

command: jr
argument:

  • room id

example:

jr;1
# send an initialisation of the room and start if full

Make a move:

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

Skip your turn:

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

Replace tiles:

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

Custom Commands

List the rooms:

command: rr
argument: none
example:

rr
> [INFO] room(s): 1,2

Force start:

command: /fs
argument: none
example:

/fs
# starts a game

Force stop:

command: /fx
argument: none
example:

/fx
# calculates the score and prints the result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages