معرفی شرکت ها


battleship-py-0.2.2


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Simple Battleship game
ویژگی مقدار
سیستم عامل -
نام فایل battleship-py-0.2.2
نام battleship-py
نسخه کتابخانه 0.2.2
نگهدارنده []
ایمیل نگهدارنده []
نویسنده João Magalhães
ایمیل نویسنده joamag@gmail.com
آدرس صفحه اصلی https://github.com/joamag/battleship
آدرس اینترنتی https://pypi.org/project/battleship-py/
مجوز Apache License, Version 2.0
# Battleship 🛥️ Simple Battleship game in Python. <img src="https://github.com/joamag/battleship/raw/master/res/videos/001-demo.gif" width="460" /> This is a simple implementation with dynamic grid support (defaults to 10x10). ## Challenge Create an application to allow a single human player to play a one-sided game of Battleships against ships placed by the computer. The program should create a 10x10 grid, and place a number of ships on the grid at random with the following sizes: * 1x Battleship (5 squares) * 2x Destroyers (4 squares) The player enters coordinates of the form “A5”, where "A" is the column and "5" is the row, to specify a square to target. Shots result in hits, misses or sinks. The game ends when all ships are sunk. ## Run ```bash pip3 install battleship-py python3 -m battleship ``` ## Commands | Name | Description | | ------- | ------------------------------------------------ | | HELP | Prints an help message about the commands. | | QUIT | Quits the Battleship game. | | DESTROY | Destroys the game by shooting all the vessels. | | PRINT | Prints the current state of the game to console. | | EMOJI | Prints the emoji version of the state. | | (X)(Y) | Shoots the target at coordinate (eg: A5). | ## Build Automation [![Build Status](https://github.com/joamag/battleship/workflows/Main%20Workflow/badge.svg)](https://github.com/joamag/battleship/actions) [![PyPi Status](https://img.shields.io/pypi/v/battleship-py.svg)](https://pypi.python.org/pypi/battleship-py) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://www.apache.org/licenses/)


نحوه نصب


نصب پکیج whl battleship-py-0.2.2:

    pip install battleship-py-0.2.2.whl


نصب پکیج tar.gz battleship-py-0.2.2:

    pip install battleship-py-0.2.2.tar.gz