Battleship TUI is an implementation of the popular paper-and-pen Battleship game for your terminal.
Project description
Battleship TUI
Battleship TUI is an implementation of the popular paper-and-pen Battleship game for your terminal. You can play against the AI or a real player via the Internet, customize game options and appearance, keep track of your achievements, and more.
Features
- Singleplayer mode
- Multiplayer mode (via Internet)
- Customizable game rules
- Customizable UI
- Launch via CLI
- Game statistics
Planned features
- Ranking system
- Account management
Requirements
- A terminal (Windows PowerShell is fine too, see below)
- Python 3.10 or higher
[!NOTE] If you're on Windows, make sure to install the newer Windows Terminal. The older Windows PowerShell can't properly display some symbols.
Installation
If you're on Linux or macOS, most probably you already have Python installed. You can verify it by
running $ python --version
. If your Python version is lower than required, try installing the
latest operating system updates.
If you're on Windows, you can download and install the latest Python release from the official site.
The recommended way to install and update the game is via pipx (especially if you don't know anything about virtual environments).
Install pipx
, then install the game.
pipx install battleship-tui[client]
battleship-tui
is merely a Python package and is distributed via PyPI. You can
install it via pip
too, but make sure it installs into a venv so that you're not
messing with the system interpreter.
Play
Once the game is installed you can use the battleship
command to run it. This
command will launch the user interface and present you with the main menu.
Play via CLI
You can launch the game via CLI subcommands too, especially if you want to skip some in-game menus.
For example, if your favorite game mode is singleplayer, salvo variant, you can
quickly get into battle by running battleship play single --salvo
.
Run battleship play --help
to discover available options.
Multiplayer
You can play Battleship TUI with your friends or colleagues via the Internet. Choose Multiplayer option in the main menu to do this.
Game account
You may sign up for a multiplayer account or try multiplayer with guest access.
To sign up, run battleship account signup
. You'll be prompted with your email,
desired nickname, and a password. Your nickname will be displayed in-game. It should
contain 7 to 20 characters and be unique. Your password should contain at least 9
characters.
[!NOTE] Guests given an autogenerated nickname, their game statistics isn't saved. Guest access will work until you log off.
Screenshots
Expand to see more screenshots
Main menu
Game summary
Starting a multiplayer session
List of game sessions to join
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file battleship_tui-0.12.0.tar.gz
.
File metadata
- Download URL: battleship_tui-0.12.0.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.14 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 045cac77db682871e7699676bb4e2f3c4f4dc588e0733ee0059443764b93f777 |
|
MD5 | 71470c1417e978295e5729c3328ebcb4 |
|
BLAKE2b-256 | f1e4537e22813a2e103ae5e2cec998091433e6ac07c75f0fbb8586135844e4e3 |
Provenance
File details
Details for the file battleship_tui-0.12.0-py3-none-any.whl
.
File metadata
- Download URL: battleship_tui-0.12.0-py3-none-any.whl
- Upload date:
- Size: 89.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.14 Linux/6.5.0-1017-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b6d1fcc4781b879f0cf311ef4e4f9b3834dbc3903747a464f4c7f33d3da9bea |
|
MD5 | 008d023f1ba6693f3443372c4bac5759 |
|
BLAKE2b-256 | 8508c2f2bd64bcbc5c881979a2f84cec01b153f1d8102486df4258a7a2680938 |