This is a simple, but super cool Battleship game. Lets Play!!!
Project description
=================
Battleship Python
=================
|PyPI latest| |PyPI Version| |PyPI License|
This is a simple, but super cool Battleship game. Lets Play!!!
Installation
------------
.. code-block:: bash
$ pip install py-battleship
Or, you can download the source and
.. code-block:: bash
$ git clone git@github.com:rhenter/battleship-python.git
$ cd battleship-python
$ python setup.py install
Add sudo in the beginning if you met problem.
How to Use
----------
To play use py-battleship or python -m battlefield
.. code-block:: bash
$ py-battleship
Points: 0 Shots Available: 50 Time elapsed: 0 sec
------------------------------------------------------------------------------------------
| - | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
------------------------------------------------------------------------------------------
| A | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| B | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| C | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| D | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| E | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| F | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| G | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| H | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| I | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| J | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| K | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| L | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| M | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| N | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| O | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| P | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| Q | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
------------------------------------------------------------------------------------------
Labels
-------
<Carrier> Initials: CA | Size: 5 | Hits: 0 | sunk: no
<Battleship> Initials: BT | Size: 4 | Hits: 0 | sunk: no
<Cruiser> Initials: CR | Size: 3 | Hits: 0 | sunk: no
<Destroyer> Initials: DT | Size: 3 | Hits: 0 | sunk: no
<Submarine> Initials: SB | Size: 2 | Hits: 0 | sunk: no
<Frigate> Initials: FR | Size: 2 | Hits: 0 | sunk: no
------------------------------------------------------------------------------------------
Press CTRL+C to exit ...
Choose your coordinate using one LETTER from A to Q and one NUMBER from 0 to 16.
Ex: a1, b15, c10 and etc...
Coordinates: f5
Documentation
-------------
In progress
Contributing
------------
Please send pull requests, very much appreciated.
1. Fork the `repository <https://github.com/rhenter/battleship-python>`_ on GitHub.
2. Make a branch off of master and commit your changes to it.
3. Install requirements. ``pip install -r requirements-dev.txt``
4. Install pre-commit. ``pre-commit install``
5. Create a Pull Request with your contribution
.. |PyPI Version| image:: https://img.shields.io/pypi/pyversions/py-battleship.svg?maxAge=360
:target: https://pypi.python.org/pypi/py-battleship
.. |PyPI License| image:: https://img.shields.io/pypi/l/py-battleship.svg?maxAge=360
:target: https://github.com/rhenter/battleship-python/blob/master/LICENSE
.. |PyPI latest| image:: https://img.shields.io/pypi/v/py-battleship.svg?maxAge=360
:target: https://pypi.python.org/pypi/py-battleship
Changelog
---------
0.3.7
-----
* Fix: Readme Pypi
0.3.6
-----
* Update readme
0.3.5
-----
* Use vertical label in upper case
0.3.4
-----
* Add more status messages
0.3.3
-----
* Fix logical
0.3.1
-----
* Add locale folder to Manifest.in
0.3.0
-----
* Add Gettext/internationalization support
0.2.0
-----
* Bug Fixes
* Improve better UI
* Fix layout
* Change to use letters instead of only numbers
0.1.0 (2019-01-01)
------------------
* initial release
0.3.2
-----
* Fix locale file
0.3.1
-----
* Add locale folder to Manifest.in
0.3.0
-----
* Add Gettext/internationalization support
0.2.0
-----
* Bug Fixes
* Improve better UI
* Fix layout
* Change to use letters instead of only numbers
0.1.0 (2019-01-01)
------------------
* 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
py-battleship-0.3.7.tar.gz
(8.6 kB
view hashes)
Built Distribution
Close
Hashes for py_battleship-0.3.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf6a174c33cadfea66fe7749a5959359b61000cab38364f423df4e8d0ebb54af |
|
MD5 | 57db5a91c127bd12239347109f27bf91 |
|
BLAKE2b-256 | bdf5dfefbd18b891ae3d1a9dc004d657db0cd748262b08e4cd5e192e87e4d4dd |