A CLI implementation of the classic connect 4 game
Project description
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:
- Run the following commands from the CLI:
py -m venv venv
- 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
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
Built Distribution
File details
Details for the file connect-4-cli-0.0.7.tar.gz
.
File metadata
- Download URL: connect-4-cli-0.0.7.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.3.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c91c889a756b6cf2ccd52f2bab2c4086144ab8bcbd5c19ef2b57a41aa2046503 |
|
MD5 | 47e2d6eaaf5b29a6ad0020fb2916fe1b |
|
BLAKE2b-256 | 4120644000226d3b7d120f9e6bfa3854bf8cc43d7435bf0d09e28cda9039ecd4 |
File details
Details for the file connect_4_cli-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: connect_4_cli-0.0.7-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.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6504a9851f1dbcd871acbb2d538a985674d40bfc00897caeec3ae66ca658a481 |
|
MD5 | 9f83ff538c74819edc639c8b85996bd6 |
|
BLAKE2b-256 | 3e919b50f7784f3480bd899236a5bf4ee31d9597225870a620af8232fbb4813f |