Complete with optional challenge mode, time limit and multiplayer over a network connection. You can choose different options from the game interface.
If you don't know how to play Scrabble, click here for rules
Clone the game and enjoy it. If you have any feedbacks, I will very much appreciate.
You can play the game as 2, 3, or 4 players.
State the starting square of your word using the names of the columns and the rows: eg. h8
, b12
. When you state the starting square and the direction(r
for right or d
for down), the game will make a range for it. For example, you want to place the word "money" starting the from the square "h8" to the right side (i.e. h8 r money
). The game will make the range accordingly as "h8=M, i8=O, j8=N, k8=E, l8=Y". If one of the squares in the range of your word is occupied, as long as the occupying letter is the same as the letter corresponding that square in your word, your word will be placed on the board.
Enter pass
as your starting square and you will be prompted for the letters you wish to change.
When you have and want to use a blank tile(@), put it in place of the missing letter in your word (eg. You want to make "money" but you don't have a letter "n". If you have a blank tile(@), you can make your word like this: "mo@ey"). When you use a blank tile, you will be asked for what letter it is used for. Type the letter it substitutes.
When you place your word on the board and make more than one word, you will get the points of those new word. You will only get the bonus squares if they are in the range of your new word. The interface will only display the word that was placed on the word but the points for the extra words will be added to your score.
In order to save the game, enter 'save' and you will be prompted to enter a name for your saved game. The game will create a saves folder in the game root folder and in the saves file, a text file named as your save game.
When loading a saved game, the player should select the correct number of the players for the saved game. If the saved game will be continued on the network, other players should enter their names they had picked for the saved game correctly when prompted.
When selected, if a player enters a word that is not in the dictionary, his or her turn will be passed.
Players can set how long a game will last in minutes. After the specified time, the game will be over and the player with the most points will win. If the time ends while making a word, the word will not count.
When selected, a server will fire up at port 2000 on your localhost. The player will be prompted about the number of the players that will play the game. When another computers (as many as specified by the player) on the network run 'ruby join_game.rb your_ip_address', a game will start. The connecting computers don't need to have the whole game script. If a game doesn't start, the firewall might be blocking incoming requests. Make sure to make the necessary adjustments.