A beautiful, engaging daily word guessing game built with Next.js and TypeScript, inspired by Wordle.
- Daily Challenge: A new word to guess every day
- Limited Attempts: Just like Wordle, players have six tries to guess the daily word
- Visual Feedback: Color-coded tiles indicate correct letters and positions
- Score Tracking: Player statistics and leaderboard functionality
- Countdown Timer: Shows time until the next daily puzzle
- Theme Switching: Toggle between light and dark modes with smooth transitions
- Responsive Design: Optimized for both desktop and mobile
- Animations: Polished interactions and visual feedback throughout the game
- Modern UI: Sleek design with gradient effects and glass morphism
- Next.js: React framework for server-rendered applications
- TypeScript: For type safety and better developer experience
- Tailwind CSS: For utility-first styling
- Framer Motion: For smooth animations and transitions
- Local Storage: For persisting game state and player preferences
- Try to guess the secret 5-letter word in six attempts or fewer
- After each guess, the color of the tiles will change:
- Green: The letter is correct and in the right position
- Yellow: The letter is correct but in the wrong position
- Gray: The letter is not in the word
- Continue guessing until you either solve the puzzle or run out of attempts
- A new word is available each day
-
Clone the repository:
git clone https://github.com/yourusername/word-puzzle-game.git cd word-puzzle-game -
Install dependencies:
npm install # or yarn install -
Run the development server:
npm run dev # or yarn dev -
Open http://localhost:3000 in your browser to play the game locally
The game is implemented in a single file (pages/index.tsx) for simplicity, but it can be modularized for larger projects:
- Game state management using React hooks
- Daily word selection using date-based seeding
- Statistics and leaderboard persistence with localStorage
- Responsive UI components with accessibility in mind
You can customize the game by:
- Modifying the word list array in the code
- Adjusting the color scheme or animations
- Changing the difficulty by modifying the maximum number of attempts
- Adding additional features like hints or different game modes
The game is fully responsive and works well on mobile devices:
- Touch-friendly keyboard
- Properly sized game board for different screen sizes
- Optimized layout for portrait orientation
- Server-side leaderboard with user accounts
- Social sharing functionality
- Daily statistics and streaks visualization
- Multiple difficulty levels
- Custom word lists or themes
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Wordle
- Built with Next.js
- Styled with Tailwind CSS
- Animations powered by Framer Motion
Created with ❤️ by Aiyoub