Skip to main content

No project description provided

Project description

Connect4 and Tic-tac-toe in the terminal

Text-based versions of Connect4 and Tic-tac-toe.

The program also contains a computer player, implemented using the minimax algorithm (with alpha–beta pruning).

Each board game can be played as human against human, human against computer or computer against computer.

The program is started by running python main.py.

How to play

Tic-tac-toe

To make a move in Tic-tac-toe, input (x, y) when prompted, where x and y are the x and y coordinates of a square on the board.

Connect4

To make a move in Connect4, enter x when prompted, where x is the index of the column you wish to make a move in.

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

cligames-0.1.0.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

cligames-0.1.0-py3-none-any.whl (8.7 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