Play NYT Connections in the Terminal using rich for wide terminal compatibility.
Project description
NYT Connections in the Terminal
A lightweight, dependency-free TUI for playing the NYT Connections game in your terminal. It fetches the official daily puzzle and lets you play with a simple, clean interface using Python's built-in curses library.
Preview
Here's a glimpse of what it looks like in action:
$ connections-tui -d 2024-08-23
NYT Connections — 2024-08-23
Strikes: ❤❤❤❤❤
Solved groups: (none yet)
[ BUFF ] [ CREAM ] [ FINISH ] [ FAWN ]
[ TAN ] [ MONITOR ] [ GLOVES ] [ BOA ]
[ CHECK ] [ TERMINAL ] [ TIE ] [ FAN ]
[ SCREEN ] [ CORSET ] [ DISPLAY ] [ BASK ]
Use arrows/WASD to navigate, [Space]=Select, [Enter]=Submit, f=shuffle, c=clear, q=quit
Features
- Play the official NYT Connections puzzle for any day.
- No external dependencies, just Python 3.8+.
- Smooth keyboard navigation (Arrow keys or WASD).
- Shuffle, select, and submit words.
- Strike tracking with hearts (
❤) or ASCII (O/x) for compatibility. - "One away" hints when you're close.
- After solving, you can immediately load the next or previous day's puzzle.
- Load puzzles from local JSON files for offline play or custom games.
- Set a random seed for reproducible shuffles.
Installation and Usage
Arguably the simplest way to run the project is with uv:
uvx connections-tui@latest
You can of course install directly from PyPI:
pip install -U connections-tui
and run the console command in your terminal:
connections-tui
Command-line Options
You can customize the game with these arguments:
| Argument | Shorthand | Description |
|---|---|---|
--date <YYYY-MM-DD> |
-d |
Play the puzzle for a specific date. (Default: today) |
--file <path/to/file.json> |
-f |
Play from a local JSON puzzle file. |
--seed <integer> |
-s |
Set the random seed for reproducible board shuffles. |
--ascii |
-a |
Use ASCII characters (O/x) for strikes instead of hearts. |
Example:
# Play yesterday's puzzle with ASCII hearts
connections-tui -d $(date -v-1d +%Y-%m-%d) --ascii
Keybindings
| Key | Action |
|---|---|
Arrow Keys, WASD, HJKL |
Move cursor |
Space |
Select/deselect a word (up to 4) |
Enter |
Submit your selection of 4 words |
f |
Shuffle the remaining words on the board |
c |
Clear your current selection |
q |
Quit the game |
n |
(After solving) Load the next day's puzzle |
p |
(After solving) Load the previous day's puzzle |
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file connections_tui-0.1.0rc2.tar.gz.
File metadata
- Download URL: connections_tui-0.1.0rc2.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81c99486c98d42681e7f2b595c1872e016b3629f5a465920222fb4a2fbb52cd4
|
|
| MD5 |
edd4ed3b2af6f6040f33b5fa96d260c1
|
|
| BLAKE2b-256 |
123ad4c5a32f716fce031f40d0cfae8e3375df92a69d3ff6fb76d26e11f5fe5d
|
File details
Details for the file connections_tui-0.1.0rc2-py3-none-any.whl.
File metadata
- Download URL: connections_tui-0.1.0rc2-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08fa3bbc729023a4f979e8ff816a6be255155b7e17cbfd402fdd2eee37898ed8
|
|
| MD5 |
8a276a06452ff57a669ca8ef836202c3
|
|
| BLAKE2b-256 |
97f852b91d10ac635ad636c119bc6a32634a7441963fc9dfafb9934ac2992fd3
|