Skip to content

Latest commit

 

History

83 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

A Scrabble Computer Player

Description

This project is an implementation of the classic Scrabble game built with the Pygame framework for a dissertation project. It aims to be an interactive, educational, and entertaining way to enjoy the game of Scrabble, and also serves as an excellent tool for language learning. The game includes an intuitive and user-friendly interface, multiple difficulty levels, an AI opponent, and a comprehensive word dictionary and scoring system for accurate word validation and scoring.

Features

  • User-friendly graphical interface
  • Multiple difficulty levels
  • Strategic AI opponent
  • Comprehensive word dictionary
  • Accurate scoring system

System Requirements

  • Operating System: [Windows 10]
  • Python 3.7 or above
  • Pygame library version 2.0.0 or above

Installation Instructions

  1. Ensure Python 3.7 (or later) is installed on your machine. If not, you can download and install it from the official Python website (https://www.python.org/downloads/).
  2. Install the Pygame library. Open your terminal and run the following command:

pip install pygame 3. Clone or download this repository to your local machine.

Running the Game

  1. Open your terminal and navigate to the directory where you downloaded the project.
  2. To run the game, execute the main Python file (for example, if your main file is called main.py, you would use the following command):

python main.py 3. The game should now start and you can begin playing!

Contents

  • mf314
  • pyScrabbleProject
    • resources
      • fonts
        • OpenSans-Regular.ttf
        • FuturaExtended.ttf
      • images
        • LetterSprite.png
        • tile_resources.png
        • tile_resources.xcf
      • board_data.txt
    • board.py : Contains the code for the game board.
    • colours.py
    • computerplayer.py :Contains the code for the computer mode
    • game.py: The main Python file to start the game
    • singleplayer.py : Contains the code for the single player mode
    • LettersSpritesheet.py : Contains the code for the LettersSpritesheet
    • player.py : Contains the code for the player class
    • resourceFile.py : Contains the code for the resource manager
    • scoringSystem.py : Contains the code for the scoring system.
    • scrabble.py : Contains the code for the word validation.
    • ScrabbleAI.py : Contains the code for the AI algorithm.
    • tileModule.py : Contains the code for the tiles.
    • TwoPlayerMode.py : Contains the code for the TwoPlayer mode
    • word_dictionary.py : Contains the code for the word dictionary

Contributing

Please note that this project is for a dissertation and is not currently accepting contributions.

License

[Muneer Fakih] [2023]. All rights reserved.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages