naughts and crosses game
Project description
OXO
A naughts & crosses game.
note: requires python version >= 3.6
Install
To install run command:
python3 -m pip install --user --upgrade oxo_pkg
if installing from TestPyPi run:
python3 -m pip install --user --index-url https://test.pypi.org/simple/ oxo_pkg
Run
oxo can either by ran as a commandline script or as a python package ran in the Python3 REPL.
- Run in python REPL :
Open the python3 REPL
python3
import and run the package
>import oxo_pkg
>oxo_pkg.run()
- Run in commandline :
run oxo in a commandline terminal.
run locally :
run python3 ./oxo 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 --help
troubleshooting
try which oxo
This should print something like /Users/your.username/Library/Python/3.7/bin/oxo
If not find the equivalent location in your filesystem (where pip installs applications to), check that oxo binary file is present, & add the location to your PATH.
Tests
from project home directory run
python3 -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 python3 -m pip install --user --upgrade dist/*
Release
Increment release number in oxo_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/*
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oxo_pkg-2.1.1.tar.gz.
File metadata
- Download URL: oxo_pkg-2.1.1.tar.gz
- Upload date:
- Size: 6.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b2dcd2977908604293cf34f4b3d853b4f7f9dfcc37ad3aa892fb4f1f4be9d03
|
|
| MD5 |
192d25b0174f4265f1f5e2d575685a84
|
|
| BLAKE2b-256 |
fea9d21e9822be4d73f8edb503845323bc89cb323f9bb8922307335523a60164
|
File details
Details for the file oxo_pkg-2.1.1-py3-none-any.whl.
File metadata
- Download URL: oxo_pkg-2.1.1-py3-none-any.whl
- Upload date:
- Size: 8.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a177c10cc8cbe86cc117c5b6d0f04326b270c20362dec7fbe1851576a5acaf6
|
|
| MD5 |
aaa3792961b9c0cef1d738f2abadcec4
|
|
| BLAKE2b-256 |
9ddc919dd4386e7763ff245891681caace6b6b334300d2eb275cadc365c50438
|