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
- Game statistics
Planned features
- Customizable UI
- Ranking system
- Account management
- Better CLI
Requirements
- A terminal (Windows PowerShell is fine too)
- Python 3.10 or higher
Installation
The recommended way to install and update the game is via pipx (especially if you don't know anything about virtual environments).
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.
# Linux example.
python -m venv venv && source venv/bin/activate
pip install battleship-tui[client]
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.3.0.tar.gz
.
File metadata
- Download URL: battleship_tui-0.3.0.tar.gz
- Upload date:
- Size: 54.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.15.0-88-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d38c9742bc21f5779b74f4f9c0a6cae76aa2ec844517e376378c9937a4e432e7 |
|
MD5 | 97da31ef96037f5db232db2b8297df1a |
|
BLAKE2b-256 | c995c66b53e7f832f4844a324c8ee4495771938571f85bc153eaccdbfd7bd012 |
Provenance
File details
Details for the file battleship_tui-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: battleship_tui-0.3.0-py3-none-any.whl
- Upload date:
- Size: 75.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.2 Linux/5.15.0-88-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2af7ad815fbba2e79b779e72ffed3d21537d5f806838e62754e2682c17ea213 |
|
MD5 | 9d53318aede69145704618970c780035 |
|
BLAKE2b-256 | 17c1d7ed4f714c8b15e10869a39178f910c41a6ae611d007e6f9b5c42c2ff1f1 |