- After opening the zip file, type
make build
in the terminal to build our system. - Now type
make run
in the terminal: this should start our game by loading an empty scrabble board.
-
To play our game, you will be prompted after running
make run
to type in the number of players. -
After that, each player will be prompted
move | swap | pass | surrender >
where they can either execute a move by placing letters on the board, swapping tiles, or passing their turn -
To execute a move on the Scrabble board, you will need to give the following inputs
move [direction] ([row] [column] [word])
where[row] [column] [word]
can be repeated for placing tiles on either side of existing tiles. valid directions areacross
,a
,down
, andd
. For example,move a 2 3 orange
- The
row
input ranges from 0 to 14. - The
column
input ranges from 0 to 14. - The
direction
input ranges is either a (Across) or d (Down). - The
word
input can be either a single letter or many letters in succession.
-
To execute a swap on the Scrabble board, you will need to give the following inputs
swap [letter 1] [letter 2] ... [letter n]
For example,swap a b c
-
To execute a pass on the Scrabble board, you will simply need to type
pass
-
To execute a surrender, you will simply need to type
surrender
. Once all players typesurrender
during their respective turns, the game will end. -
To win the game, the first player with no tiles left will win.