Skip to main content

Play NYT Connections in the Terminal using rich for wide terminal compatibility.

Project description

NYT Connections in the Terminal

PyPI version License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

connections_tui-0.1.0rc1.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

connections_tui-0.1.0rc1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file connections_tui-0.1.0rc1.tar.gz.

File metadata

  • Download URL: connections_tui-0.1.0rc1.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for connections_tui-0.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 9b786d2d96e77871b83c180deca602db2f83f5bd59eb743738508ecf0c9567bb
MD5 79cb05b3d123a0dde977a704c69be671
BLAKE2b-256 9cabe10f0327bd70bc1e0dc7f94899900b9cf4a5944ebd5b9afcbcbedd9e69ba

See more details on using hashes here.

File details

Details for the file connections_tui-0.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for connections_tui-0.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 61ef569180b003786212ca532362b4e15f35b987407123fa86a97ece74858030
MD5 85cda4733b0a26dca6a97e382a4f28b2
BLAKE2b-256 dbc9a23bdb437d5af92beaae511a4bb690fff62878c307fc1b31da234709c8a9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page