Skip to main content

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

Release files for py-battleship 1.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-battleship 1.3.2
File Size Uploaded
py-battleship-1.3.2.tar.gz 12.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-battleship 1.3.2
File Interpreter ABI Platform
py_battleship-1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / py-battleship-1.3.2.tar.gz

Download URL py-battleship-1.3.2.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
789db18832b1b117f5600331ba243cdceff969a15417d6dd22c4c7c26a097dcd
BLAKE2b-256 checksum
How to use checksums
f2222726ab3cdc27f881e4168994be49fc5d7c7d62e79c32890da90a0921b300
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / py_battleship-1.3.2-py3-none-any.whl

Download URL py_battleship-1.3.2-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfd25e624bc41d95da08fd60c9ef400a8183c312b8b7e86288abe423de255fa4
BLAKE2b-256 checksum
How to use checksums
59e05cfdaac70c86c978f2365ad97356fe034ccf74eb43a22e5f8ffa2f229e7e
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.3

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page