Crates.io | sea_battle_cli_player |
lib.rs | sea_battle_cli_player |
version | 0.2.1 |
source | src |
created_at | 2022-10-17 17:19:22.274576 |
updated_at | 2024-01-17 18:17:17.014337 |
description | A Sea Battle game shell client |
homepage | |
repository | https://gitea.communiquons.org/pierre/SeaBattle |
max_upload_size | |
id | 690269 |
size | 198,374 |
A sea battle shell client player for the sea_battle_backend crate, based on the tui library.
For the 🤖 bot and ➕ create invite modes, game rules can be customized before starting the game.
You can install the backend using the following command:
cargo install sea_battle_cli_player
Simply launch using:
sea_battle_cli_player
If you want to run a local server to play offline LAN games, the cli player can also act as the server:
RUST_LOG=info sea_battle_cli_player -s -l 0.0.0.0:7000
Then all the players must specify the address of this server to use it instead of the default official one:
sea_battle_cli_player -r http://IP_OF_TARGET:7000