5 Commits

Author SHA1 Message Date
86280a4b55 Implement hard mode, plus customization
game:
- New flag `--hard`: Select from 3 levels of difficulty:
  - Greenie: only check greens
  - Hard: classic Wordle* hard mode
  - Grayless: All hints are checked, even gray letters
- New flag: `--nokeyboard` disables the keyboard
- Improved customization:
  - Box characters, colors, and keyboard layouts moved into wordlists!
  - Support for non-English alpha characters to be determined. It should work though, I think.
  - Most things are no longer hardcoded! The main function is still a bit of a spaghetti mess right now, though. To be fixed!

dummy:
- New customization parameters:
  - `"boxes"`: Strings to be printed when assembling the share string (from least to most significant order)
  - `"colors"`: Text colors, to be printed on-screen. Order: Gray, Yellow, Green, Text Color, Keyboard background
  - `"keyboard"`: The keyboard layout. One string per line, of keyboard.
2022-02-16 17:51:57 -06:00
b874cfc101 Refactor everything:
- F STRINGS????????????
- Enforce relativity
- Rename things for better
- Separate the cheating from the game playing
- Remove most hardcoded constants
- Introduce new wordlist 'format' (lol python, who needs json)
- Test things fairly extensively
2022-02-16 12:28:21 -06:00
f8bd727cbb Draw the rest of the owl
everything:
- indent to 3 spaces; 2 is too few, 4 is too many

ui:
- Create UI helper functions
- Hook print and input to move the cursor around the screen (fun!)
- Support partial screen clearing
- Support moving relatively and absolutely
- Save and load cursor position before input or print

w:
- Clarify with comments

w2:
- Import the NYT wordlist

c:
- Capitalize constants

g:
- Handle sigint gracefully (WHY)
- improve the user experience through popup messages
- Auto-color-coded keyboard (to the tune of TMNT)
- Classic gamemode, uses Wordle Classic solutions
- Additional pass for marking gray letters (on the keyboard)
- Move printing the intro Wordle #* string into own function
- Move the game board into the middle of the screen
2022-02-16 02:21:58 -06:00
c5a5c44ca1 w: official solutions are provided solely for the purpose of compatibility with the canonical Wordle client 2022-02-14 20:56:50 -06:00
5452552875 Add [w]ord list and [g]ame 2022-02-12 05:33:23 -06:00