Skip to main content

This is a simple, but super cool Battleship game. Lets Play!!!

Project description

PyPI latest PyPI Version PyPI License CicleCI Status Coverage

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

https://raw.githubusercontent.com/rhenter/battleship-python/master/game.png

Documentation

In progress

Contributing

Please send pull requests, very much appreciated.

  1. Fork the repository 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

Changelog

1.3.2

  • Update Game Image

1.3.1

  • Bugfix: Add click lib as pinned

1.3.0

  • Improve UI,

  • BugFix: Robbot choice

  • Create Brainiac Class

1.2.1

  • BugFix: Final and current shot Statistics

1.2.0

  • BugFix: Adding ship using same coordinates

  • BugFix: Robbot using repeated coordinates

1.1.3

  • Add raw image to be seen on Pypi

1.1.2

  • Change ci to cicleCI

  • Update Pypi

1.1.1

  • Remove debug and change travis config

1.1.0

  • Add tests

  • Add codecov and travis integration

  • Update Readme

  • Remove blink from messages

1.0.0

  • Change game play to be Multiplayer

  • Change game to finish when CPU or Player1 wins or use CTRL+C

  • Refactor language to be central

  • Create Custom exceptions

  • Use Python Click to print the board using colors

  • Use Python Click to improve the main function

0.3.13

  • BugFix: Exit game with CTRL+C

  • Move exception treatment to battlefield.py

  • Create more exceptions

  • Create a centralized language translator

0.3.12

  • Improve UI to print statistics

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


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-1.3.2.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

py_battleship-1.3.2-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file py-battleship-1.3.2.tar.gz.

File metadata

  • Download URL: py-battleship-1.3.2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for py-battleship-1.3.2.tar.gz
Algorithm Hash digest
SHA256 789db18832b1b117f5600331ba243cdceff969a15417d6dd22c4c7c26a097dcd
MD5 25e7e8d33c74e608f3f15e1e9a5cc6b8
BLAKE2b-256 f2222726ab3cdc27f881e4168994be49fc5d7c7d62e79c32890da90a0921b300

See more details on using hashes here.

File details

Details for the file py_battleship-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: py_battleship-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for py_battleship-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cfd25e624bc41d95da08fd60c9ef400a8183c312b8b7e86288abe423de255fa4
MD5 b8f6186be4b30992d8e2025c98f0e935
BLAKE2b-256 59e05cfdaac70c86c978f2365ad97356fe034ccf74eb43a22e5f8ffa2f229e7e

See more details on using hashes here.

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