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
Release history Release notifications | RSS feed
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)