This is a clone of the Wordle game. Players have six attempts to guess a five-letter word, with feedback given for each guess in the form of colored tiles indicating when letters match or occupy the correct position.
This project utilizes RxJS to handle user interactions within a Wordle game. Here is an overview of the key parts of the implementation:
-
Game Initialization:
- Creates an instance of the Wordle game with a specific grid size.
-
Event Handling:
- Uses RxJS observables to listen to user key events.
- Observers respond to these events by writing, deleting, or checking letters in the game grid.
-
Subscriptions:
- Merges multiple event observables to manage game restart and window load actions.
- Subscribes to keydown events to handle letter input until the game result is determined.
- How to get the project
# Clone the repository
git clone https://github.com/basierraferrer/wordle.git
# Navigate to the project directory
cd wordle/
# Install dependencies
npm install- Running locally
npm start- Then open the browser on
http://localhost:8080