This is a simple, but super cool Battleship game. Lets Play!!!
Project description
This is a simple, but super cool Battleship game. Lets Play!!!
Installation
$ pip install py-battleship
Or, you can download the source and
$ 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
$ py-battleship
Points: 0 Shots Available: 47 Time elapsed: 21 sec
------------------------------------------------------------------------------------------
| - | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
------------------------------------------------------------------------------------------
| a | . | O | . | . | O | . | . | . | . | . | . | . | . | . | . | . | O |
| b | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| c | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| d | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| e | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| f | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| g | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| h | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| i | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| j | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| k | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| l | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| m | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| n | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| o | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| p | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| q | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
------------------------------------------------------------------------------------------
Labels
-------
<Carrier> length: 5 | initials: CA | Hits: 0 | sunk: no
<Battleship> length: 4 | initials: BT | Hits: 0 | sunk: no
<Cruiser> length: 3 | initials: CR | Hits: 0 | sunk: no
<Destroyer> length: 3 | initials: DT | Hits: 0 | sunk: no
<Submarine> length: 2 | initials: SB | Hits: 0 | sunk: no
<Frigate> length: 2 | initials: FR | Hits: 0 | sunk: no
------------------------------------------------------------------------------------------
Choose your coordinates. Ex: a1, b15: c10
Coordinates: q10
Documentation
In progress
Contributing
Please send pull requests, very much appreciated.
Fork the repository on GitHub.
Make a branch off of master and commit your changes to it.
Install requirements. pip install -r requirements-dev.txt
Install pre-commit. pre-commit install
Create a Pull Request with your contribution
Changelog
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
Built Distribution
Hashes for py_battleship-0.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3506f795031f0754dbb664e473202877fe5caa4073aa3bb53b18ce2e22fc6380 |
|
MD5 | d1f42fb4a33b25569ea6e0ccfd23dd02 |
|
BLAKE2b-256 | 37c6503cb8f3418cc22e1c496e4a95cbff2f85807970f1eafe100298c5d6e7b5 |