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.

Filename, size & hash SHA256 hash help File type Python version Upload date
py_battleship-1.3.2-py3-none-any.whl (13.4 kB) Copy SHA256 hash SHA256 Wheel py3
py-battleship-1.3.2.tar.gz (12.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page