Skip to content

ajaysh2193/Scrabble-Word-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyScrabbleGUI

A complete scrabble game written in Python3 with the following features:

  • challenge mode
  • time limit
  • point limit
  • multiplayer on a single computer
  • multiplayer over LAN
  • playing against computer

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.

How to Play

Start a game

Windows

Go to the py_scrabble_gui folder and double click on py_scrabble.pyw.

Unix-based OS

On the terminal, cd into py_scrabble_gui folder and run python3 py_scrabble.pyw. You can also run chmod +x py_scrabble.pyw and make the file executable.

Blank tile

Simply place a blank tile on the spot of the letter you want to replace it with. When you submit your word, a popup will ask you what letter it should be replaced with.

Challenge mode

The challenge mode is according to the double challenge rule. When activated, a player can challenge the words that the player before him or her has placed on the board. If one of the words is not valid, the previous player's turn will be passed and word points will be subtracted. If the words are valid, the turn of the player who has challenged will be passed.

Multiplayer on a single computer

A game of 2, 3 or 4 players can be played on a single computer. The letters on the racks of the players will be concealed to prevent other players to see other players' letters unintentionally. By clicking the reveal button, letters become visible. It is shown in red font above the board whose turn it is.

Playing against computer

Computer goes through permutations of letters on its rack and picks the valid move with the most points. A turn for computer takes about 1 minute 20 seconds (on i5 1.6 GHz with 8 GB RAM) depending on the computer.

If you want to end the game while it is computer's turn and try to close the program, you will have to wait till the computer's permutations are over, which takes about 1 minute (on i5 1.6 GHz with 8 GB RAM).

Save a game

If a game is saved during a LAN multiplayer game, it can be later loaded as a normal multiplayer game on a single machine.

Multiplayer on LAN

Join a Game (Auto) won't probably find the hosted game on networks which can assign more than 256 IP addresses (campus wifi and such). It might work if only the last part of the assigned IPs changes. In that case, Join a Game (IP) option can be used and the host IP address can be entered.

It is better to start a LAN game on a trusted network like a home or work network because security settings might prevent remote access on some systems.

If a player on an OS X machine wants to join a game on LAN, it is recommended to increase the size of open files. The limit is 256 on new versions and it will cause OSError: [Errno 24] Too many open files because Join a Game (Auto) uses threads to scan all the available IP's on LAN. In order to increase the limit, use ulimit -n <new_limit>. Anything above 300 should suffice.

Screenshots

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages