Wordle++
Enhanced Word Guessing Game
A reimagined version of the popular NYTimes Wordle game featuring variable word lengths (4-6 letters), built as a JavaFX desktop application with unlimited gameplay. Uses Wordnik API for dynamic word selection.
Overview
Wordle++ expands on the viral NYTimes Wordle concept by introducing customizable word lengths and unlimited gameplay. Unlike the original's single daily puzzle, Wordle++ allows players to enjoy as many rounds as they want, with words ranging from 4 to 6 letters for varied difficulty levels.
Built entirely in Java with JavaFX for the user interface, this project showcases my ability to create engaging games with custom logic, real-time feedback systems, and clean, maintainable code architecture.
Tech Stack
Key Features
-
Variable Word Lengths
Players can pre-select word lengths between 4-6 letters, adjusting difficulty to their preference. This flexibility makes the game accessible to beginners while maintaining challenge for experienced players.
-
Custom Game Logic
Built game logic from scratch handling guess evaluation, color-coded feedback, and win/loss conditions. Processes each guess providing immediate visual feedback through the familiar green, yellow, and gray color system.
-
Wordnik API Integration
Integrates with the Wordnik API to fetch random valid words for each game based on the selected length, ensuring variety and replayability across unlimited games.
-
Unlimited Gameplay
Unlike the original Wordle's once-daily format, Wordle++ offers unlimited games. Players can immediately start a new round after completing a puzzle, perfect for extended play sessions or practice.
-
JavaFX Interface
Developed a desktop interface using JavaFX with real-time visual feedback. The UI features a grid-based game board, keyboard input with auto-tabbing, and clear game state indicators.
Game Mechanics
Wordle++ follows the classic Wordle formula with enhancements:
How to Play
- Select your preferred word length (4, 5, or 6 letters)
- Guess the word by typing and submitting valid English words
- Receive color-coded feedback for each guess:
- Green: Letter is correct and in the right position
- Yellow: Letter is in the word but wrong position
- Gray: Letter is not in the word
- Win by guessing the word within 5 attempts
- Play again immediately with a new random word
Technical Implementation
Game Logic
The game implements core Wordle mechanics including:
- Letter position checking and color-coded feedback
- Game state tracking for attempts and progress
- Win/loss condition detection
JavaFX Interface
The desktop interface uses JavaFX components:
- GridPane layout for the game board
- TextField inputs with auto-tabbing between letters
- Button-based game controls and scene navigation
- Inline JavaFX styling for Wordle-inspired colors
Wordnik API Integration
Uses Wordnik API to provide dynamic gameplay:
- HTTP requests to fetch random words by specified length (4-6 letters)
- Basic error handling for network connectivity
Key Takeaways
Building Wordle++ enhanced my skills in:
- Java Development: Object-oriented programming and desktop application development
- JavaFX: Building graphical user interfaces with scene management and controls
- Game Development: Implementing game mechanics with visual feedback
- API Integration: Working with external REST APIs for dynamic content
- String Manipulation: Character-by-character comparison and position tracking