A Swift implementation of the popular Wordle game, designed to practice MVC (Model-View-Controller) architecture concepts.
This project is a clone of the New York Times Wordle game, built using Swift and MVC principles. The game challenges players to guess a five-letter word within a limited number of attempts, providing hints after each guess to help narrow down the correct answer.
- MVC Architecture: The project is structured following the MVC pattern, separating the application's data, user interface, and control logic for better maintainability.
- User Interface: A simple, intuitive interface that displays the game state, user input, and feedback, following the NYT Wordle format.
- Gameplay Mechanics: Following Wordle pattern, players have six attempts to guess a randomly selected five-letter word. Feedback is provided through color-coded hints, indicating correct letters in the correct positions and correct letters in incorrect positions.
- Demo Video: A demonstration video is available to showcase the gameplay and features here.
To run this project locally, follow these steps:
- Clone the Repository:
git clone https://github.com/rheiformes/Wordle.git
- Open in Xcode: Open the project in Xcode.
- Build and Run: Select your target device or simulator, then build and run the project.
- Start the game and enter a five-letter word as your guess.
- After each guess, receive feedback:
- Green indicates a correct letter in the correct position.
- Yellow indicates a correct letter in the wrong position.
- Gray indicates an incorrect letter.
- Continue guessing until you find the correct word or exhaust your attempts.
This project was developed as a learning exercise to understand MVC architecture and Swift programming. The codebase includes clearly separated components for the model (game logic), view (user interface), and controller (interaction logic).
- Inspired by the original Wordle game by Josh Wardle, now owned by the New York Times.