A Fun Experiment of Tic-Tac-Toe!
Project description
A Fun Experiment of Tic Tac Toe!
Install
pip install TicTacToe4fun
Run
>>> from TicTacToe4fun import game >>> g = game() >>> g.trials(n_trials = 10000, verbosity = 0, board_dims = (3, 3)) board_dims = (3, 3), X won #: 0, O won #: 0, Draw #: 10,000, Elapsed time: 0.869 sec >>> g.trials(n_trials = 1, verbosity = 1, board_dims = (3, 3)) board_dims = (3, 3), X won #: 0, O won #: 0, Draw #: 1, Elapsed time: 0.001 sec >>> ... >>> g.trials(n_trials = 10000, verbosity = 0, board_dims = (4, 4)) board_dims = (4, 4), X won #: 0, O won #: 0, Draw #: 10,000, Elapsed time: 10.039 sec >>> g.trials(n_trials = 1, verbosity = 1, board_dims = (4, 4)) board_dims = (4, 4), X won #: 0, O won #: 0, Draw #: 1, Elapsed time: 0.002 sec
Sample Screenshot
Have fun!!!
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
TicTacToe4fun-0.0.6.tar.gz
(432.8 kB
view details)
Built Distribution
TicTacToe4fun-0.0.6-py3-none-any.whl
(434.2 kB
view details)
File details
Details for the file TicTacToe4fun-0.0.6.tar.gz
.
File metadata
- Download URL: TicTacToe4fun-0.0.6.tar.gz
- Upload date:
- Size: 432.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d973b2e702bb63a2688b3fe19828e667eda901bfc1a9df9ee4dc6828b652746 |
|
MD5 | 51184ce5755b1a4eb8f191ad7d652980 |
|
BLAKE2b-256 | 1275e67230fb9ac762f026316fb83a9a4cc85145a541b17cc84000f252c1f679 |
File details
Details for the file TicTacToe4fun-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: TicTacToe4fun-0.0.6-py3-none-any.whl
- Upload date:
- Size: 434.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a060e0200c4b7e54ba792b9e29f992ddf333e800c3eb410c9c7ac599aaae83 |
|
MD5 | 55681713ea3aba6d3d27743ecda4a763 |
|
BLAKE2b-256 | 57d0800632fef67a6a1e9557de626c270f730647852b3162caed45f0f8a07acf |