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.9.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

connect_4_cli-0.0.9-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

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