Skip to main content

A Fun Experiment of Tic-Tac-Toe!

Project description

BuildTest PyPi License Downloads PythonVersion

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

image1

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)

Uploaded Source

Built Distribution

TicTacToe4fun-0.0.6-py3-none-any.whl (434.2 kB view details)

Uploaded Python 3

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

Hashes for TicTacToe4fun-0.0.6.tar.gz
Algorithm Hash digest
SHA256 9d973b2e702bb63a2688b3fe19828e667eda901bfc1a9df9ee4dc6828b652746
MD5 51184ce5755b1a4eb8f191ad7d652980
BLAKE2b-256 1275e67230fb9ac762f026316fb83a9a4cc85145a541b17cc84000f252c1f679

See more details on using hashes here.

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

Hashes for TicTacToe4fun-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 29a060e0200c4b7e54ba792b9e29f992ddf333e800c3eb410c9c7ac599aaae83
MD5 55681713ea3aba6d3d27743ecda4a763
BLAKE2b-256 57d0800632fef67a6a1e9557de626c270f730647852b3162caed45f0f8a07acf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page