suryaambrose / boardgame

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

*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.

How to install it

  • Download the source
  • Run python setup.py install

How to play it

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

About

License:MIT License


Languages

Language:Python 100.0%