*boardgame* is a Python package gathering several simple games like TicTacToe or Connect 4. It is meant to be played by humans or by programs.
This page only describes basic usage of this package. For a more advanced usage, (e.g. to have a program play a game, or to add a new game) it will be added later.
- Download the source
- Run
python setup.py install
You can play TicTacToe or ConnectFour using the corresponding subcommands of the boardgame command
boardgame tictactoe -h
By default, the games oppose a human and an AI, but you can change that like this:
boardgame tictactoe --human-players 2