This is a web-based Anagrams game developed using PHP and MySQL. The game allows players to find as many anagrams as possible within a given time limit using a set of random letters. The server validates each word against an embedded dictionary. Players can view their score, compete for high rankings, and optionally share their results on Facebook and Twitter.
- When a player starts a game, the server selects 8 letters at random.
- The player has 60 seconds to find as many valid anagrams as possible using the given letters.
- Each time the player submits a word, the server validates it against the embedded dictionary.
- The player's remaining time counter is increased if the submitted word is valid.
- The player can request a new set of random letters at any time.
- The game ends when the player runs out of time.
- Fast and responsive gameplay.
- Real-time validation of words against an embedded dictionary.
- Timer display showing the remaining time.
- Ability to request a new set of random letters.
- Scoreboard to track and display player scores.
- Authentication system to save scores for registered users.
- Guest mode available for playing without saving scores.
- Game description page explaining how to play.
To set up the Anagrams game locally, follow these steps:
- Clone the repository:
git clone https://github.com/HoussamMrabet/Anagrams-Game.git
. - Ensure you have PHP and MySQL installed on your local machine.
- Import the included database file into your MySQL server.
- Database file included for easy local setup.
- Configure the database connection settings in the application.
- Run the application using a PHP server.
- Access the game in your web browser.
- Launch the application in your web browser.
- Create an account or log in if you want to save your scores.
- Start a new game to receive a set of random letters.
- Formulate valid anagrams using the given letters within the time limit.
- Submit your words for validation.
- The server will increase your remaining time if the word is valid.
- Optionally, request a new set of letters during gameplay.
- The game ends when the time runs out.
- View your score and ranking on the leaderboard.
- Share your score on Facebook and Twitter if desired.
Contributions to this Anagrams game project are welcome. To contribute, follow these steps:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make the necessary changes in your branch.
- Test the changes to ensure they work as expected.
- Submit a pull request with a detailed explanation of your changes.
This project is licensed under the MIT License.
For any inquiries or feedback, please contact houssammrabet5@gmail.com.