Skip to main content

A CLI implementation of the classic connect 4 game

Project description

Tests pypi package PyPI version codecov

Connect 4 CLI

The classic 4-in-a-line game, also called connect 4, playable from the CLI or shell.

Details

This is a simple implementation of the classic connect 4 game. It can be played directly from the CLI or shell.

Installation

The game is available as a pip package. Download it with the following command:

pip install connect-4-cli

Preferably, install in virtual environment. In Windows, for example:

  1. Run the following commands from the CLI:
py -m venv venv
  1. Activate the virtual environment with the activate script inside the ./venv/Scripts/ folder:
    • Using command window:
    call venv/Scripts/activate
    
    • Or using powershell:
    ./venv/Scripts/activate.ps1
    
  2. pip install the package.

How to play

Run the following command (with activated virtual environment if installed there) to start the game:

connect-4-cli

Play the game using keyboard keys, as prompted in the game.

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

connect-4-cli-0.0.8.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

connect_4_cli-0.0.8-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file connect-4-cli-0.0.8.tar.gz.

File metadata

  • Download URL: connect-4-cli-0.0.8.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for connect-4-cli-0.0.8.tar.gz
Algorithm Hash digest
SHA256 aabe7f97eb3b38dcc1fcf2ec58c077e52e7536be9a4546581e3bac72a8bfd405
MD5 61f64e8f85eb24d6c0ff71a095714b34
BLAKE2b-256 4d21968c8ea46bc28f0075e5b1d626abc8580b4b8e5e7c82741402dd00df115f

See more details on using hashes here.

File details

Details for the file connect_4_cli-0.0.8-py3-none-any.whl.

File metadata

  • Download URL: connect_4_cli-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 11.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.3.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for connect_4_cli-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 d20feec81c0903e6992981ba59999077bd09b22b69c5219ef26db8c018bc5c42
MD5 75d687f9fdc7cbff6cc9a1a4f9fbb6c1
BLAKE2b-256 d5afb77446117c8c64c6be633e4ef9a7c6c1e56afd7d6c07729aff9a1979b38b

See more details on using hashes here.

Supported by

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