Skip to main content

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

Project description

PyPI latest PyPI Version PyPI License Travis Build 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

docs/images/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.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.1.0.tar.gz (3.2 MB view hashes)

Uploaded Source

Built Distribution

py_battleship-1.1.0-py3-none-any.whl (12.1 kB view hashes)

Uploaded Python 3

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