Wordle game written in WinAPI. It has 3 difficulty levels, letter revealing animation and coloring (in the main window and keyboard window).
Details (task content prepared by course instructors):
Layout:
• Keyboard window centered horizontally and pushed down, should always be fully visible
• Game windows centered to given screen sections:
o One window - in the center of the screen
o Two windows - centered in two halves of the screen
o Four windows - centered in four quarters of the screen
• Fixed size of game windows depending on board size
• Fixed size of keyboard window chosen randomly
• Set title "WORDLE - KEYBORD" and "WORDLE - PUZZLE" respectively for keyboard window and game windows
• Set icon: "Wordle.ico" (Icon should also be visible in the taskbar. It suffices if it's in the main window.)
• Application background color: (255, 255, 255)
• Button colors (letter backgrounds) size 55 and margin between them 6:
• Empty letter (default color) - (251,252,255)
• Incorrect letter - (164, 174, 196)
• Letter in word but wrong place - (243,194,55)
• Letter in correct place - (121,184,81)
• Letter border in button color and/or incorrect color if background has default color
• Default size is 6 words of 5 letters
• Variable size depending on difficulty level (e.g. Easy 6 words, Medium 8 words, Hard 10 words)
• Application loads available words from txt file
• Each game window has a different word to solve
• Letters are entered simultaneously to all game windows
• Enter accepts word, Backspace removes letter
• Accepted word cannot be changed
• After acceptance letter revealing animation in the word occurs
• If word was guessed, green transparent overlay appears and window stops accepting new letters
• If we didn't guess the word, red transparent overlay appears with message containing correct password
• Keyboard letters are colored immediately after guessing (Enter) depending on difficulty level and window layout
Application logic:
• Keyboard window is always transparent
• Keyboard window displays letters as on keyboard
• Keyboard window and game windows color letters depending on their status in given game window (several colors for larger number of game windows)
• Changing difficulty level (also to the same) causes game restart and windows reset
• Enter accepts word
• Backspace removes letter
• Display overlay depending on game status
• Green - word guessed
• Red with displayed solution - loss
• Letters are revealed using animation
• Window drawing should not cause flickering
• Letter input occurs only when keyboard window has focus
• Application uses save/load of difficulty level to/from ini file
