A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/orhun/battleship-rs below:

orhun/battleship-rs: Battleship game implemented in Rust

Battleship game implemented in Rust.

Fully playable between 2 players on the terminal.

To play on the public instance:

$ nc battleship.orhun.dev 1234

Minimum supported Rust version: 1.38.0

$ ./target/release/battleship

This will start the server on port 1234, then players can connect to it with any tool that supports TCP sockets. For example, using netcat:

Dockerfile is available in the repository.

$ docker build -t battleship .
$ docker run --rm -d --name battleship -p 1234:1234 battleship

You can use the following environment variables for specifying the game settings:

After joining the game, players take turns firing shots (by calling out a grid coordinate) to attempt to hit the opponent's enemy ships. Example coordinates would be a1, g8, E4, I2, and so on.

Each player has two grids: an upper and lower grid.

The lower grid views the location of the player's own ships, while the upper grid shows the shots fired toward the opponent and also gives information about whether those shots were hits or misses.

  1. Boat
  1. Destroyer
  1. Battleship
All code is licensed under The MIT License.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4