Skip to main content

naughts and crosses game

Project description

OXO

oxo_pkg ported for python 2.7

A naughts & crosses game

note: requires python version >= 2.7

Install

To install run command:

python -m pip install --user --upgrade oxo_2_pkg

if installing from TestPyPi run:

python -m pip install --user --index-url https://test.pypi.org/simple/ oxo_2_pkg

Run

oxo can either by ran as a commandline script or as a python package ran in the Python REPL.

- Run in python REPL :

Open the python REPL

python

import and run the package

>import oxo_2_pkg

>oxo_2_pkg.run()

- Run in commandline :

run oxo-2 in a commandline terminal.

run locally :

run python ./oxo-2 from project home directory.

options

See below text:

here is a list of accepted arguments: 
    --hard     :  activates hard-mode
    --s-hard   :  activates super-hard-mode
    --version  :  show current version number
    --help     :  show help options

To see these at any point run oxo-2 --help

troubleshooting

try which oxo-2

This should print something like /Users/your.username/Library/Python/2.7/bin/oxo-2

If not find the equivalent location in your filesystem (where pip installs applications to), check that oxo-2 binary file is present, & add the location to your PATH.

Tests

from project home directory run

python -m unittest test.test_methods.TestMethods

Build

python3 -m pip install --user --upgrade setuptools wheel (install / update wheel & setuptools)

python3 setup.py sdist bdist_wheel

Produces a .whl built distribution & a tar file of the source code in dist/ directory.

To install the locally built version run python -m pip install --user --upgrade dist/*

Release

Increment release number in oxo_2_pkg/resources/version.md file.

Make sure the latest version is built with above build step.

Upload the build with twine:

python3 -m pip install --user --upgrade twine (install / update twine)

python3 -m twine upload dist/*

To upload to TestPyPi run:

python3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*

Note: it currently seems best to build & upload using python3

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

oxo_2_pkg-1.0.1.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

oxo_2_pkg-1.0.1-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file oxo_2_pkg-1.0.1.tar.gz.

File metadata

  • Download URL: oxo_2_pkg-1.0.1.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for oxo_2_pkg-1.0.1.tar.gz
Algorithm Hash digest
SHA256 287c25403e47e6810b652c156ccbb67d2e8f13a06f9ee9518b18108122cb88d5
MD5 dc28e55e5b70135ee0a85a82e5630ed1
BLAKE2b-256 490fe8d43202ed1e5c7fed25ccac67708fb232aa5de7aa10ec0af910c8f913ba

See more details on using hashes here.

Provenance

File details

Details for the file oxo_2_pkg-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: oxo_2_pkg-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for oxo_2_pkg-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 518dc1a198be4dcc050adf35f22446f9e9d8ea0e80962797f89d83d2bfc34297
MD5 08cb2a1489d22519560b0bfa4a5ed824
BLAKE2b-256 ad3267b01bb00b7e8c951587526ebedcd3b2d7c2840727d0ebfaca1c417d4d62

See more details on using hashes here.

Provenance

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