Skip to main content

Play NYT Connections in the Terminal with no additional dependencies.

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
NYT Connections — 2023-10-27
              Strikes: ❤❤❤❤

Solved groups: (none yet)

       [ LENTIL ]      [ KIDNEY ]       [ PINTO ]       [ BLACK ]
       [ CLUE ]        [ RISK ]         [ SORRY ]       [ MONOPOLY ]
       [ NAVY ]        [ ROMAN ]        [ CHICKPEA ]    [ ARIAL ]
       [ TIMES ]       [ COMIC SANS ]   [ GARAMOND ]    [ BEIGE ]

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

Install directly from PyPI:

pip install connections-tui

Usage

Simply run the 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> Play from a local JSON puzzle file.
--seed <integer> Set the random seed for reproducible board shuffles.
--ascii 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.0.6.tar.gz (8.3 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.0.6-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file connections_tui-0.0.6.tar.gz.

File metadata

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

File hashes

Hashes for connections_tui-0.0.6.tar.gz
Algorithm Hash digest
SHA256 ac13759789e048e3ceed562a12e1b0fec48ab752231b8b4e294363a412126806
MD5 f71caa290d80e30b3de7855e8dd0e5fe
BLAKE2b-256 0dfa2d42521285320928ec7ba7498d32556131d4359d0f06043e52a59dfe7925

See more details on using hashes here.

File details

Details for the file connections_tui-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for connections_tui-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e41f551e9c6ffacdcbd11035e12a53108cd9ebe82137027963b5ef805ba751
MD5 d89b02235191c7a4a14866471970a428
BLAKE2b-256 0698db6ea38a7fb2a6a72789280c8486164d35ea94b62544494f3d35510decc8

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