A tic-tac-toe game with xxl fun
Project description
TicTacToeXXL
TicTacToeXXL is a tic-tac-toe game with xxl fun. The rules are the same, but there are not fixed elements – you can create a tic-tac-toe game with multiple players on a n*m grid and the first player who strikes ‘x’ movements in a row (vertical/horizontal/diagonal) wins the game. Simple as playing a tic-tac-toe game but with xxl fun.
Installation
Manual
For a manual installation, do as usual and execute the following – unpack it, go to unpacked directory and run setup.py install
tar zxf tictactoexxl-{VERSION}.tar.gz
cd tictactoexxl-{VERSION}/
python setup.py install
PIP
For a pip installation, just pip install tictactoexxl
$ pip install tictactoexxl
Play
Once installed, just type tictactoexxl-play.py but it will no provide you xxl fun. Check tictactoexxl help tictactoexxl-play.py --help to customice your tic-tac-toc game, e.g.:
tictactoexxl-play.py -p3 -x5 -y5 -w4
If a game constraint is not provided, the corresponding one of standard tic-tac-toe game will be set. tictactoexxl-play.py -x5 -y5 -w4 will set a default param -p2 that represents that the game will be set for two players.
Support
Python 2.7 and 3.4 versions have been tested with success.
License
MIT License, so you can sell tictactoexxl package and no one will charge you for your action. ;)
Testing
pip install pytest coverage pytest-cov tox
Please install tox and pytest to test tictactoexxl package – coverage and pytest-cov are not required to run the tests. Just simply run tox on the tictactoexxl root directory and it will run the tests, python setup.py test will also provide the same feedback.
Skills Proof / Cheat Style
TicTacToeXXL has been created to be applied as a proof of my personal Python development practices/knowledge and prove myself to create/distribute a Python package from scratch.
If you need to create a tic-tac-toe game to submit it on a job appliance, bachelor course, university master, however, please do not cheat, and leave any temptation to read / copy tictactoexxl code. It will not be the way. Be honest, do not cheat yourself and the code reviewer who might face your truth.
History
1.0.1 (2014-08-23)
Bug Fixing. - Board with size 0x0 crashes game [github #1] - Invalid game settings are accepted for playing [github #2]
1.0.0 (2014-08-22)
Initial release.
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
Built Distribution
File details
Details for the file tictactoexxl-1.0.1.tar.gz
.
File metadata
- Download URL: tictactoexxl-1.0.1.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4a2c0274df67461e2ecacc13e7ad8379814a64105f76847ab67b59c08d6b4f7 |
|
MD5 | 260365d793cfdad5a4b7a9620025f965 |
|
BLAKE2b-256 | 408a5c19e1ee5da40fc56ca57c6fdc20277e7d977fbe9229d8f2ca07cb3591ad |
File details
Details for the file tictactoexxl-1.0.1-py2.py3-none-any.whl
.
File metadata
- Download URL: tictactoexxl-1.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfbd91dd6682f9a859ed85ae5d3c988ce4d2d2f73de018778a7f0b000414399 |
|
MD5 | b40046dc992c59f70c786335584eaf4a |
|
BLAKE2b-256 | 4dff5015f0aff7844c5008857a84f2b8962e58d087e7e8f077a3b8276d8dfcb8 |