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
$ 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
$ py-battleship
Points: 1900 Shots Available: 31 Time elapsed: 178 sec
------------------------------------------------------------------------------------------
| - | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
------------------------------------------------------------------------------------------
| A | CA | CA | CA | CA | CA | O | . | . | . | . | . | . | . | . | . | . | . |
| B | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| C | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| D | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| E | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| F | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| G | . | . | . | . | . | O | . | . | . | . | . | . | . | . | . | . | . |
| H | O | . | . | . | . | . | . | CR | O | O | . | . | . | . | . | . | . |
| I | . | . | . | . | . | . | . | CR | FR | . | . | . | . | . | . | . | . |
| J | . | . | . | . | . | . | O | CR | FR | . | . | . | . | . | . | . | . |
| K | . | . | . | . | . | . | . | . | O | . | . | . | . | . | . | . | . |
| L | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| M | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | O | . |
| N | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| O | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
| P | . | . | . | . | . | . | . | . | . | O | . | . | . | . | . | . | . |
| Q | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . | . |
------------------------------------------------------------------------------------------
Labels
------------------------------------------------------------------------------------------
Ship Initials Size Hits sunk
------------------------------------------------------------------------------------------
Carrier CA 5 5 yes
Battleship BT 4 0 no
Cruiser CR 3 3 yes
Destroyer DT 3 0 no
Submarine SB 2 0 no
Frigate FR 2 2 yes
------------------------------------------------------------------------------------------
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:
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.11
Update Readme
0.3.10
Fix table layout
0.3.9
Refactor Main: Remove unnecessary code
Remove duplicated code
Add translation
0.3.8
Fix: Readme Pypi
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
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.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3104d2cd0c4b7e348b39511e550bc4ce713445f7eb49f8daf46ee96f96934b97 |
|
MD5 | 09d2c19aa335e38bad00e5f893f99005 |
|
BLAKE2b-256 | ded109815fcfc9738e40f9981cd4ee3c7b980b0cba7d55af159f1b2dea0578de |